-
Notifications
You must be signed in to change notification settings - Fork 18
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
clean-unref: documentation & feat suggestion (recursivity) #116
Comments
Yes, Your suggestion is another |
Yes this is the idea: not keeping only the cache for dependencies of a single project, but for the union of the dependencies of all the projects of the user. Also, I was thinking to do it user-wise to not miss dependencies, so instead of starting from Side note: For reference, I would like to highlight why it is different from a simple shell script which would run |
Right, so we could have something like Some notes on how that could be implemented: |
I am not sure keeping it in the same subcommand is good for the user because if the user forgets the |
Hi!
About documentation
When I read this I guess that it looks around for
Cargo.toml
to list all the dependencies and remove data in the cache that are not used by any of them. In the README is mentioned:Then I understand that it does this only for the crate I am in. When I run the command, from my home directory, I get:
So I think the help description for this subcommand could be improved (for instance copying the README)
The suggestion
This feature as I currently understand it removes unused crates (but not binaries) that are not listed in the
Cargo.toml
of the crate I am currently in, therefore ignoring all the other crates. I think it can be good for CI use, but for personal use, I think that it could be interesting to have a command likeclean-unref-user
which (Rust-like pseudocode):let used =
Iterates over allCargo.toml
in user directory recursively (can take some time).map(|file| file.
get the list of the dependencies()).flatten();
for dependency in used {
removedependency
from the list of repositories (skip if already removed or missing)}
The text was updated successfully, but these errors were encountered: