commands.sh

cargo check

all

Check a local package and all of its dependencies for errors.

More info →

Options (2)

boolean

Check the current package

Example: cargo {{[c|check]}}
-F, --featuresboolean

Check the current package with the features `feature1` and `feature2`

Example: cargo {{[c|check]}} {{[-F|--features]}} {{feature1,feature2}}

Examples (5)

Check the current package

cargo [c|check]

Check all tests

cargo [c|check] --tests

Check 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-features
made by @shridhargupta | data from tldr-pages