CARGO-CHECK(1) General Commands Manual CARGO-CHECK(1) (NAME) cargo-check - (SYNOPSIS) cargo check [] (DESCRIPTION) . cargo build . (metadata) . cargo check . (OPTIONS) (Package Selection) ( --manifest-path ). (workspace) . workspace.default-members . ( --workspace) . -p spec, --package spec . SPEC cargo-pkgid(1) . glob * ? [] . glob Cargo . --workspace . --all --workspace. --exclude SPEC . --workspace . glob * ? [] . glob Cargo . (Target Selection) cargo check . required-features . . --bin --example --test --bench glob * ? [] . glob Cargo glob . --lib . --bin name . glob . --bins . --example name (example) . glob . --examples . --test name (integration test) . glob . --tests test = true . . ( ). test . --bench name . glob . --benches bench = true . . ( ). bench . --all-targets . --lib --bins --tests --benches --examples . . default . . -F features, --features features . (workspace) package-name/feature-name . . --all-features . --no-default-features default . (Compilation Options) --target triple (target) . . (host) . --- . : o rustc --print target-list. o "host-tuple" . (cross-compiling) ( xtask ). o . Custom Target Lookup Path . build.target . Cargo . . -r, --release release. --profile . --profile name . test cfg test . rustc . . --timings . cargo-timing.html target/cargo-timings . . . --target-dir directory . CARGO_TARGET_DIR build.target-dir . target . (Display Options) -v, --verbose (verbose). " " . term.verbose . -q, --quiet cargo . term.quiet . --color when . : o auto (): . o always: . o never: . term.color . --message-format fmt . . : o human (): . short json . o short: . human json . o json: JSON (stdout). . human short . o json-diagnostic-short: rendered JSON "" rustc . human short . o json-diagnostic-rendered-ansi: rendered JSON ANSI rustc . human short . o json-render-diagnostics: Cargo rustc JSON Cargo JSON rustc . JSON Cargo rustc . human short . --manifest-path path Cargo.toml. Cargo Cargo.toml . --ignore-rust-version rust-version . --locked Cargo.lock . Cargo : o . o Cargo . CI . --offline Cargo . Cargo . Cargo . . Cargo crate (index) . cargo-fetch(1) . net.offline . --frozen --locked --offline . (Common Options) +toolchain Cargo rustup cargo + rustup ( +stable +nightly). rustup . --config KEY=VALUE PATH Cargo . TOML KEY=VALUE . . . -C PATH . cargo (Cargo.toml) .cargo/config.toml . cargo -C path/to/my-project build. nightly -Z unstable-options ( #10098 ). -h, --help . -Z flag ( nightly) Cargo. cargo -Z help . -j N, --jobs N . build.jobs . CPU . CPU . default . 0 . --keep-going crate crate . fails works cargo check -j1 ( Cargo ) cargo check -j1 --keep-going . --future-incompat-report future-incompat . cargo-report(1) . (ENVIRONMENT) Cargo . (EXIT STATUS) o 0: Cargo . o 101: Cargo . (EXAMPLES) 1. : cargo check 2. : cargo check --all-targets --profile=test (SEE ALSO) cargo(1), cargo-build(1) CARGO-CHECK(1)