Commands
cargo build [--release | --debug]
cargo test
Run through all test casescargo test foo
Run through a single test casecargo doc --open
Create documentation and serve locallycargo run
Compiles debug build and runs itcargo clean
Removes target directoriescargo update
Update all dependenciescargo update -p rand
Update a single crate
External commands
Install these external commands annotating the command name with cargo-
e.g. cargo install cargo-watch
cargo watch -x "check"
Run a cargo command every time some code changescargo expand
Generate the output of macro code generation