Implementation: #7820
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#features
Summary
-Z features=itarget causes the feature resolver to ignore features for target-specific dependencies for targets that don't match the current compile target. For example:
[dependency.common]
version = "1.0"
features = ["f1"]
[target.'cfg(windows)'.dependencies.common]
version = "1.0"
features = ["f2"]
When building this example for a non-Windows platform, the f2 feature will not be enabled.
Unresolved issues
Implementation: #7820
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#features
Summary
-Z features=itargetcauses the feature resolver to ignore features for target-specific dependencies for targets that don't match the current compile target. For example:When building this example for a non-Windows platform, the
f2feature will not be enabled.Unresolved issues
cargo metadata