diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2020-09-25 06:19:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-25 06:19:23 +0200 |
commit | a2960ac430c919c5f08d7ddc5c8e65e398ca1656 (patch) | |
tree | e485e46ee7ab559fbc84e506b8f9349ac5da7e0c /doc/languages-frameworks | |
parent | 45402e454f79933b2c94a00af2f2a10b9f17ea26 (diff) | |
parent | a6c17c9cdd23af192a811e6c7b3cfb37fcd986fb (diff) |
Merge pull request #97603 from zowoq/rust-test-threads
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r-- | doc/languages-frameworks/rust.section.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index 7f9d93216ed98..0e1d59e1a952a 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -119,6 +119,18 @@ The above are just guidelines, and exceptions may be granted on a case-by-case b However, please check if it's possible to disable a problematic subset of the test suite and leave a comment explaining your reasoning. +#### Setting `test-threads` + +`buildRustPackage` will use parallel test threads by default, +sometimes it may be necessary to disable this so the tests run consecutively. + +```nix +rustPlatform.buildRustPackage { + /* ... */ + cargoParallelTestThreads = false; +} +``` + ### Building a package in `debug` mode By default, `buildRustPackage` will use `release` mode for builds. If a package |