-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stabilize -Z avoid-dev-deps
as --minimal-cargo-lock
#5133
Comments
Clarification question: am I correct that |
@matklad when I last touched that code, yes. the |
@infinity0 do you have some patch for this? We wanted to not package some optional dependencies and hit this issue. |
\cc @keszybz |
and also deps for disabled features, I hope. Right? |
@ignatenkobrain Cargo already carries this functionality as |
@alexcrichton any chance to get someone to work on this? I'm pretty sure that all distributions which decide to package crates will get hit by this. |
What needs to be done in order to get his option stabilized? Cargo pulling in Windows and Redox deps unconditionally is currently |
Sorry, at this time we don't have this particular feature on a path towards stabilization. We recognize that there are circumstances where it solves a problem, but we feel like the design hasn't been completely fleshed out, and nobody on the team has the time right now to shepherd that design. |
fwiw, this looks like it needs to be resolved to fix problems with debian's autopkgtest suite and multiple crates. |
I think this is subsumed by #7916 |
It doesn't seem so. I tried by running
|
Hmm right good point. I think the difference between the two features is that |
Any chance this can take shape any time soon? Right now I still have to build all async stuff just for |
For people who are using stable version numbers to |
Thank you for this workaround! |
Copying over from #14794 a description from an active user of this feature
|
like the copied comments above indicate, Debian heavily relies on this flag to build packaged crates (and only uses the dev-dependencies in the CI tests running using built packages). |
Original issue: #4988Nightly: avoid-dev-deps
Implementation: #5012
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#avoid-dev-deps
Issues: Z-avoid-dev-deps
-Z avoid-dev-deps
flag avoids resolving dev-dependencies in certain targets likeinstall
.@alexcrichton thinks that "in the long run [this wants] to be something like --minimal-cargo-lock which prunes all non-relevant dependencies like platform-specific dependencies that don't apply, dev-deps if you're not building tests, etc."
The text was updated successfully, but these errors were encountered: