Cargo

  • cargo new hello: creates a new project called hello, containing a config file called Cargo.toml and a src directory with a main.rs source file

  • cargo run hello: builds and runs the hello project (with debug symbols)

  • cargo run hello --release: builds and runs the hello project (without debug symbols)

Last updated

Was this helpful?