You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cargo vendor will include all dependency regardless platform. After removed the windows dependency,
the cargo build will fail on missing dependency even compiling on unix.
Steps
cargo new bug_test
cd bug_test
mkdir .cargo
echo'[source.crates-io]replace-with = "vendored-sources"[source.vendored-sources]directory = "vendor"'> .cargo/config
echo'[target."cfg(windows)".dependencies.winapi]version = "0.3"'>> Cargo.toml
cargo build
Possible Solution(s)
No idea
Notes
Output of cargo version: cargo 1.47.0 (f3c7e06 2020-08-28)
The text was updated successfully, but these errors were encountered:
Yea, I'm going to close this as a duplicate of #7058 (and related to #5133). The resolver needs all dependencies regardless of platform, so it is expected that it will fail.
Problem
The
cargo vendor
will include all dependency regardless platform. After removed the windows dependency,the
cargo build
will fail on missing dependency even compiling on unix.Steps
Possible Solution(s)
No idea
Notes
Output of
cargo version
: cargo 1.47.0 (f3c7e06 2020-08-28)The text was updated successfully, but these errors were encountered: