doc/languages-frameworks/rust: example for disabling tests (#198705)

0x4A6F b37df78b 78723ab9

Changed files
+12
doc
languages-frameworks
+12
doc/languages-frameworks/rust.section.md
···
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` {#setting-test-threads}
`buildRustPackage` will use parallel test threads by default,
···
However, please check if it's possible to disable a problematic subset of the
test suite and leave a comment explaining your reasoning.
+
This can be achived with `--skip` in `checkFlags`:
+
+
```nix
+
rustPlatform.buildRustPackage {
+
/* ... */
+
checkFlags = [
+
# reason for disabling test
+
"--skip=example::tests:example_test"
+
];
+
}
+
```
+
#### Setting `test-threads` {#setting-test-threads}
`buildRustPackage` will use parallel test threads by default,