-p, --package <package...> | Package to build |
-j, --jobs <jobs> | Number of parallel jobs, defaults to # of CPUs |
--bin <bin...> | |
--example <example...> | |
--test <test...> | |
--bench <bench...> | |
--profile <profile> | Build artifacts with the specified profile |
--features <features...> | |
--target <target> | |
--print <print> | Output compiler information without compiling |
--crate-type <crate-type> | |
--target-dir <target-dir> | Directory for all generated artifacts |
--manifest-path <manifest-path> | Path to Cargo.toml |
--message-format <message-format> | |
--color <color> | Coloring: auto, always, never |
--config <config> | |
-Z <unstable-features> | |
-q, --quiet | Do not print cargo log messages |
--lib | Build only this package's library |
--bins | Build all binaries |
--examples | Build all examples |
--tests | Build all tests |
--benches | Build all benches |
--all-targets | Build all targets |
-r, --release | Build artifacts in release mode, with optimizations |
--all-features | Activate all available features |
--no-default-features | Do not activate the `default` feature |
--unit-graph | Output build graph in JSON (unstable) |
--ignore-rust-version | Ignore `rust-version` specification in packages |
--future-incompat-report | Outputs a future incompatibility report at the end of the build |
-h, --help | Print help information |
-v, --verbose | |
--frozen | Require Cargo.lock and cache are up to date |
--locked | Require Cargo.lock is up to date |
--offline | Run without accessing the network |
--timings | Timing output formats (unstable) |