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

authored by 0x4A6F and committed by GitHub b37df78b 78723ab9

+12
+12
doc/languages-frameworks/rust.section.md
··· 319 319 However, please check if it's possible to disable a problematic subset of the 320 320 test suite and leave a comment explaining your reasoning. 321 321 322 + This can be achived with `--skip` in `checkFlags`: 323 + 324 + ```nix 325 + rustPlatform.buildRustPackage { 326 + /* ... */ 327 + checkFlags = [ 328 + # reason for disabling test 329 + "--skip=example::tests:example_test" 330 + ]; 331 + } 332 + ``` 333 + 322 334 #### Setting `test-threads` {#setting-test-threads} 323 335 324 336 `buildRustPackage` will use parallel test threads by default,