mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:22:07 +02:00
cargo-check: add page (#10744)
* cargo-check: add page --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
07042bbb5e
commit
351b2f262c
1 changed files with 24 additions and 0 deletions
24
pages/common/cargo-check.md
Normal file
24
pages/common/cargo-check.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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 check`
|
||||
|
||||
- Check all tests:
|
||||
|
||||
`cargo check --tests`
|
||||
|
||||
- Check the integration tests in `tests/integration_test1.rs`:
|
||||
|
||||
`cargo check --test {{integration_test1}}`
|
||||
|
||||
- Check the current package with the features `feature1` and `feature2`:
|
||||
|
||||
`cargo check --features {{feature1,feature2}}`
|
||||
|
||||
- Check the current package with default features disabled:
|
||||
|
||||
`cargo check --no-default-features`
|
Loading…
Add table
Reference in a new issue