From 351b2f262cdde3b206179debcf63a37c90ee45f7 Mon Sep 17 00:00:00 2001 From: TornaxO7 Date: Sun, 24 Sep 2023 17:26:30 +0200 Subject: [PATCH] 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 --- pages/common/cargo-check.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/cargo-check.md diff --git a/pages/common/cargo-check.md b/pages/common/cargo-check.md new file mode 100644 index 000000000..09d62b893 --- /dev/null +++ b/pages/common/cargo-check.md @@ -0,0 +1,24 @@ +# cargo check + +> Check a local package and all of its dependencies for errors. +> More information: . + +- 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`