cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.59k stars 365 forks source link

Allow `build-std` to take an array of crate names #1488

Closed thirteenowls closed 4 months ago

thirteenowls commented 4 months ago

Closes #896.

This is technically a breaking change because arbitrary strings passed to the CROSS_BUILD_STD environment variable (e.g. yes) are now no longer parsed as truthy values, but rather as a single crate name (or multiple, if containing commas) to pass to -Zbuild-std (resulting in e.g. -Zbuild-std=yes, which is invalid). Behaviour remains the same when CROSS_BUILD_STD is set to true, false, or a number that fits in an i32.