diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-02-18 00:02:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 00:02:03 +0000 |
commit | 236b56c94d4d3ba7950e7b679d67ea4c72d34299 (patch) | |
tree | 2f07db657779613aad4c0731e8d3ca79f46efcfc /doc | |
parent | 0c2cdb13d06cd5549846b337d34c27f37ab0800a (diff) | |
parent | 2376921de5c85b75e9b868d1f9dd98d209a19afc (diff) | |
download | nixpkgs-236b56c94d4d3ba7950e7b679d67ea4c72d34299.tar nixpkgs-236b56c94d4d3ba7950e7b679d67ea4c72d34299.tar.gz nixpkgs-236b56c94d4d3ba7950e7b679d67ea4c72d34299.tar.bz2 nixpkgs-236b56c94d4d3ba7950e7b679d67ea4c72d34299.tar.lz nixpkgs-236b56c94d4d3ba7950e7b679d67ea4c72d34299.tar.xz nixpkgs-236b56c94d4d3ba7950e7b679d67ea4c72d34299.tar.zst nixpkgs-236b56c94d4d3ba7950e7b679d67ea4c72d34299.zip |
Merge pull request #113193 from danieldk/cargo-install-hook
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/rust.section.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index c53818f8157..2290d92f7ad 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -196,7 +196,7 @@ sometimes it may be necessary to disable this so the tests run consecutively. ```nix rustPlatform.buildRustPackage { /* ... */ - cargoParallelTestThreads = false; + dontUseCargoParallelTests = true; } ``` @@ -293,6 +293,12 @@ 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 + `dontUseCargoParallelTests`. +* `cargoInstallHook`: install binaries and static/shared libraries + that were built using `cargoBuildHook`. ### Examples |