My personal experimentation while reading the Rust Book
main.rs:
fn main() {
println!("Hello World!");
}
Format it:
rustfmt main.rs
Compile it:
rustc main.rs
cargo new hello_cargo
cd hello_cargo
# Debug
cargo check
cargo build
cargo run
#Release
cargo build --release
cargo run --release