Based on https://youtu.be/zF34dRivLOw and the rust book.
rustc file.rs
to compile a rust file
cargo init
to create a project in an existing directory.
cargo new
to create a project in a new directory.
cargo run
to run the project
cargo build
to create debug build
cargo build --release
to create production release