cargo-wipe
Cargo subcommand that recursively finds and optionally wipes all "target" or "node_modules" folders that are found in the current path. (by mihai-dinculescu)
cargo-sweep
A cargo subcommand for cleaning up unused build files generated by Cargo (by holmgr)
cargo-wipe | cargo-sweep | |
---|---|---|
1 | 9 | |
156 | 689 | |
- | - | |
1.7 | 6.6 | |
about 1 year ago | 3 months ago | |
Rust | Rust | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cargo-wipe
Posts with mentions or reviews of cargo-wipe.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-27.
-
Announcing cargo-cleanall
I like cargo wipe - it can clean node_modules too.
cargo-sweep
Posts with mentions or reviews of cargo-sweep.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-08.
-
Target file are very huge and running out of storage on mac.
You can use cargo sweep or kondo to clean up unused files.
-
What are some useful tools for Rust?
cargo-sweep
-
crates.io now has more than 100,000 crates!
[1]: https://github.com/holmgr/cargo-sweep
-
Cargo Clean All - A cargo plugin to clean all your projects at once with filters
I use https://github.com/holmgr/cargo-sweep which can keep files from the current compiler version, but delete files from earlier compilers that won't ever be used again.
-
Announcing cargo-cleanall
How is this different from https://github.com/holmgr/cargo-sweep ?
-
Is this normal? Giant debug folder
I like https://github.com/holmgr/cargo-sweep to keep the size of /target from unbounded growth without fully losing the useful portion of the cache. It's the same outcome as Cargo clean after a reboot but I recently also started using a ramdisk with CARGO_TARGET_DIR. Much easier to do on Linux.
- Cargo clean for a number of projects
-
Blog Post: Fast Rust Builds
cargo-sweep can do this kind of garbage collection along a few axes - rustc version, file age, was or wasn't used during recent build. Works great on Linux. I've not gotten it working reliably for -s/-f on MacOS+APFS, but for the CI use case it should be a nice improvement.
-
STOP DOING RUST
holmgr is a god and cargo-sweep is a godsend
What are some alternatives?
When comparing cargo-wipe and cargo-sweep you can also consider the following projects:
cargo-chef - A cargo-subcommand to speed up Rust Docker builds using Docker layer caching.
rules_rust - Rust rules for Bazel
cargo-clean-all
kondo - Cleans dependencies and build artifacts from your projects.
squatternaut - A snapshot of name squatting on crates.io
cargo-hack - Cargo subcommand to provide various options useful for testing and continuous integration.
proc-macro2
mold - Mold: A Modern Linker ðŸ¦
Cargo - The Rust package manager
fd - A simple, fast and user-friendly alternative to 'find'
dust - A more intuitive version of du in rust
cargo-cache - manage cargo cache (${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively