Cargo
cargo new hello
: creates a new project calledhello
, containing a config file calledCargo.toml
and a src directory with amain.rs
source filecargo run hello
: builds and runs thehello
project (with debug symbols)cargo run hello --release
: builds and runs the hello project (without debug symbols)
Last updated
Was this helpful?