snippetbashTip
cargo check — Check a local package and all of its dependencies for errors. More information: <https://doc.rust-la
Viewed 0 times
commandlocalallandclicargo checkcheckpackage
Problem
How to use the
cargo check command: Check a local package and all of its dependencies for errors. More information: <https://doc.rust-lang.org/cargo/commands/cargo-check.html>.Solution
cargo check — Check a local package and all of its dependencies for errors. More information: <https://doc.rust-lang.org/cargo/commands/cargo-check.html>.Check the current package:
cargo {{[c|check]}}Check all tests:
cargo {{[c|check]}} --testsCheck the integration tests in
tests/integration_test1.rs:cargo {{[c|check]}} --test {{integration_test1}}Check the current package with the features
feature1 and feature2:cargo {{[c|check]}} {{[-F|--features]}} {{feature1,feature2}}Check the current package with default features disabled:
cargo {{[c|check]}} --no-default-featuresCode Snippets
Check the current package
cargo {{[c|check]}}Check all tests
cargo {{[c|check]}} --testsCheck the integration tests in `tests/integration_test1.rs`
cargo {{[c|check]}} --test {{integration_test1}}Check the current package with the features `feature1` and `feature2`
cargo {{[c|check]}} {{[-F|--features]}} {{feature1,feature2}}Check the current package with default features disabled
cargo {{[c|check]}} --no-default-featuresContext
tldr-pages: common/cargo check
Revisions (0)
No revisions yet.