From: Dale Wijnand Date: Fri, 20 Apr 2018 18:29:42 +0000 (+0100) Subject: add contributing notes for cross compile test setup X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~55^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e21f5b414c8792bbc250ee9d98680d64376e5644;p=cargo.git add contributing notes for cross compile test setup --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b05c79306..fc5a590b2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -78,7 +78,10 @@ in `test/` provide templates on how to test Cargo's behavior in a sandbox-environment. The internal crate `cargotest` provides a vast amount of helpers to minimize boilerplate. * Make sure `cargo test` passes. If you do not have the cross-compilers -installed locally, ignore the cross-compile test failures or disable them by +installed locally, install them using the instructions returned by +`cargo test cross_compile::cross_tests` (twice, with `--toolchain nightly` +added to get the nightly cross target too); alternatively just +ignore the cross-compile test failures or disable them by using `CFG_DISABLE_CROSS_TESTS=1 cargo test`. Note that some tests are enabled only on `nightly` toolchain. If you can, test both toolchains. * All code changes are expected to comply with the formatting suggested by `rustfmt`.