Require a method to avoid vendoring target deps that will never be used #12393
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
This is best illustrated with some screenshots.
I have a project that will only ever be built for Linux. I don't see any obvious way to specify this as such and so I'm not sure how best to handle it. But it is an issue because this project gets built on external servers for packaging for distros, and having such an absurdly high vendoring size can adversely affect these constrained environments.
Proposed Solution
Something along the lines of:
which would then restrict all chained
[target.'cfg(TARGET_OS)'.dependencies]
automatically as they could then never be built, and as such vendoring for these targets can be fully ignored.Notes
No response
The text was updated successfully, but these errors were encountered: