summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2021-02-26 11:51:31 +0100
committerDaniël de Kok <me@danieldk.eu>2021-02-26 11:57:27 +0100
commitc50a347cb5604fe92173204872d2ebdb694075b1 (patch)
treef0f51ad2433bd4fca03f97855789995774669716 /doc
parent10f68493764e51957db10d6c997e93d2746b5931 (diff)
downloadnixpkgs-c50a347cb5604fe92173204872d2ebdb694075b1.tar
nixpkgs-c50a347cb5604fe92173204872d2ebdb694075b1.tar.gz
nixpkgs-c50a347cb5604fe92173204872d2ebdb694075b1.tar.bz2
nixpkgs-c50a347cb5604fe92173204872d2ebdb694075b1.tar.lz
nixpkgs-c50a347cb5604fe92173204872d2ebdb694075b1.tar.xz
nixpkgs-c50a347cb5604fe92173204872d2ebdb694075b1.tar.zst
nixpkgs-c50a347cb5604fe92173204872d2ebdb694075b1.zip
buildRustPackage: use checkType argument
The `checkType` argument of buildRustPackage was not used anymore
since the refactoring of `buildRustPackage` into hooks. This was
an oversight that is fixed by this change.

The check type can also be passed directly to cargoCheckHook using the
`cargoCheckType` environment variable.
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/rust.section.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 94f94aaffe3..1a749d2c847 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -320,9 +320,10 @@ attributes can also be used:
   variable `buildAndTestSubdir` can be used to build a crate in a
   Cargo workspace. Additional maturin flags can be passed through
   `maturinBuildFlags`.
-* `cargoCheckHook`: run tests using Cargo. Additional flags can be
-  passed to Cargo using `checkFlags` and `checkFlagsArray`. By
-  default, tests are run in parallel. This can be disabled by setting
+* `cargoCheckHook`: run tests using Cargo. The build type for checks
+  can be set using `cargoCheckType`. Additional flags can be passed to
+  the tests using `checkFlags` and `checkFlagsArray`. By default,
+  tests are run in parallel. This can be disabled by setting
   `dontUseCargoParallelTests`.
 * `cargoInstallHook`: install binaries and static/shared libraries
   that were built using `cargoBuildHook`.