--bin <bin...> | |
--example <example...> | |
--test <test...> | |
--bench <bench...> | |
-p, --package <package...> | |
--exclude <exclude> | |
-j, --jobs <jobs> | Number of parallel jobs, defaults to # of CPUs |
--profile <profile> | Build artifacts with the specified profile |
--features <features...> | |
--target <target> | |
--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 | Display one character per test instead of one line |
--lib | Test only this package's library unit tests |
--bins | Test all binaries |
--examples | Test all examples |
--tests | Test all tests |
--benches | Test all benches |
--all-targets | Test all targets |
--doc | Test only this library's documentation |
--no-run | Compile, but don't run tests |
--no-fail-fast | Run all tests regardless of failure |
--workspace | Test all packages in the workspace |
--all | Alias for --workspace (deprecated) |
-r, --release | Build artifacts in release mode, with optimizations |
--all-features | Activate all available features |
--no-default-features | Do not activate the `default` feature |
--ignore-rust-version | Ignore `rust-version` specification in packages |
--unit-graph | Output build graph in JSON (unstable) |
--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) |