-
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
Add cargo clean --no-deps
#7156
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Thanks for the PR and sorry for the delay! This seems like a reasonable feature to me, but I think it should mirror the behavior of Overall I'm not really sure how this would fit in well with the CLI. We've historically wanted to avoid too many flags being added to too many commands for niche purposes. Perhaps the best way to interpret this would be for |
I'd like to better understand the use case here. Why is this useful? |
It's the opposite.
|
I would prefer to fix that instead of adding new flags. There is a fix on nightly via |
I agree with @ehuss that if the sole motivation for this is to get warnings then I'd say we should wait to stabilize |
I don't know if I'd want the default behavior to change. I'd just like a way to opt-in to getting any and all warnings again. The Warning messages aren't the only motivation though. Most of the time that I want to run |
I think I would personally prefer to lean on waiting for |
☔ The latest upstream changes (presumably #7502) made this pull request unmergeable. Please resolve the merge conflicts. |
@ehuss @alexcrichton It is simpler to clean a sys crate than it is to configure a |
Ok so caching of messages has been stabilized and the original motivation here I believe is largely fixed. I'm gonna go ahead and close this because we're unlikely to take this, but if there's other more targeted use cases we'd appreciate issues for them! |
I sometimes find myself wanting to clean out a project without blowing away the dependencies. The
-p
option works, but can be tedious, especially in a multi-crate workspace.This PR add a
--no-deps
option to preserve all non-workspace artifacts. The flag name and docs are modeled aftercargo doc --no-deps
.Inspired by: #573 (comment)