summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-09-29 00:12:29 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-09-29 00:12:29 +0200
commit32b4375f107315edc9066de21bf2de030d90c43d (patch)
tree8b3869f8ff2b0e2e272605b46b56348addf2d976 /doc
parenta7218d691483260bbf2ed726196f17481e2f9500 (diff)
parent695fd81e02ced2a9591cf2ac3183c360de763c07 (diff)
downloadnixpkgs-32b4375f107315edc9066de21bf2de030d90c43d.tar
nixpkgs-32b4375f107315edc9066de21bf2de030d90c43d.tar.gz
nixpkgs-32b4375f107315edc9066de21bf2de030d90c43d.tar.bz2
nixpkgs-32b4375f107315edc9066de21bf2de030d90c43d.tar.lz
nixpkgs-32b4375f107315edc9066de21bf2de030d90c43d.tar.xz
nixpkgs-32b4375f107315edc9066de21bf2de030d90c43d.tar.zst
nixpkgs-32b4375f107315edc9066de21bf2de030d90c43d.zip
Merge branch 'staging-next' into staging
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/rust.section.md12
-rw-r--r--doc/stdenv/stdenv.xml4
2 files changed, 12 insertions, 4 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 7f9d93216ed..0e1d59e1a95 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
diff --git a/doc/stdenv/stdenv.xml b/doc/stdenv/stdenv.xml
index e85e2ccb0ec..6871fad6075 100644
--- a/doc/stdenv/stdenv.xml
+++ b/doc/stdenv/stdenv.xml
@@ -1636,10 +1636,6 @@ substitute ./foo.in ./foo.out \
     --subst-var someVar
 </programlisting>
      </para>
-     <para>
-      <function>substitute</function> is implemented using the <command
-      xlink:href="http://replace.richardlloyd.org.uk/">replace</command> command. Unlike with the <command>sed</command> command, you don’t have to worry about escaping special characters. It supports performing substitutions on binary files (such as executables), though there you’ll probably want to make sure that the replacement string is as long as the replaced string.
-     </para>
     </listitem>
    </varlistentry>
    <varlistentry xml:id='fun-substituteInPlace'>