Open Hakhenaton opened 1 week ago
I ran across some issues when using nightly Cargo features such as artifacts-dependencies.
artifacts-dependencies
Cargo forces users to pass a -Z bindeps flag to activate the feature in every cargo command.
-Z bindeps
Cross already forwards the +nightly flag to internal cargo invocations, but it does not forward -Z flags.
+nightly
-Z
Consequently, cargo metadata always fail for projects using such feature.
cargo metadata
This problem would also occur when using other Cargo nightly features.
Parse the -Z flags and forward them to cargo metadata.
The problem
I ran across some issues when using nightly Cargo features such as
artifacts-dependencies
.Cargo forces users to pass a
-Z bindeps
flag to activate the feature in every cargo command.Cross already forwards the
+nightly
flag to internal cargo invocations, but it does not forward-Z
flags.Consequently,
cargo metadata
always fail for projects using such feature.This problem would also occur when using other Cargo nightly features.
Solution
Parse the
-Z
flags and forward them tocargo metadata
.