Don't require existence of dependencies not needed for the current --target #5896
Labels
A-dependency-resolution
Area: dependency resolution and the resolver
A-lockfile
Area: Cargo.lock issues
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
I've been experimenting with converting platform-specific cargo dependencies into platform-specific Debian dependencies. At the moment this is very crude but works in most Real World cases, allowing us to avoid installing
winapi
etc (andcore-foundation
,redox-*
,fuchsia-*
) as build-dependencies when building various crates in Debian. However cargo itself complains about it and fails:The
[windows-any]
annotation tells most Debian tools that those dependencies can be ignored. When I build it on x86-64 Debian, the Debian build tool does indeed omit installing these build-dependencies. But cargo doesn't like the fact that they're absent:This seems related to #5655 and #5133, but according to alexcrichton/cargo-vendor#70 seems pretty hard to achieve. We have the necessary infrastructure in place to start taking advantage of it in Debian however, in case this encourages anyone to work on it. Then we won't have to ping everyone to upgrade from winapi 0.2 to 0.3 any more :)
The text was updated successfully, but these errors were encountered: