/rust-playground

Rust repository for learning purposes

Primary LanguageRustMIT LicenseMIT

rust-playground

Rust repository for learning purposes. Step-by-step of "The Rust Programming Language" Book, available in https://doc.rust-lang.org/stable/book

Installation (Linux)

Use "rustop" to do the job

curl https://sh.rustup.rs -sSf | sh

Istall rustfmt to check code style

rustup component add rustfmt

Using Cargo to manage Projects

Create Project

cargo new <project_name>

Build Project

cargo build

Execute Project

./target/debug/<project_name>

Build and Execute

cargo run

Only compile

cargo check

Release mode

cargo <command> --release