cargo_test_support

Module cross_compile

Source
Expand description

Support for cross-compile tests with the --target flag.

Note that cross-testing is very limited. You need to install the “alternate” target to the host (32-bit for 64-bit hosts or vice-versa).

Set CFG_DISABLE_CROSS_TESTS=1 environment variable to disable these tests if you are unable to use the alternate target. Unfortunately 32-bit support on macOS is going away, so macOS users are out of luck.

These tests are all disabled on rust-lang/rust’s CI, but run in Cargo’s CI.

Statics§

  • Whether or not the resulting cross binaries can run on the host.

Functions§