cargo-sweep
A cargo subcommand for cleaning up unused build files generated by Cargo (by holmgr)
cargo-sweep | cargo-clean-all | |
---|---|---|
9 | 1 | |
680 | 97 | |
- | - | |
6.6 | 6.8 | |
about 2 months ago | 5 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-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
cargo-clean-all
Posts with mentions or reviews of cargo-clean-all.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-28.
What are some alternatives?
When comparing cargo-sweep and cargo-clean-all you can also consider the following projects:
cargo-chef - A cargo-subcommand to speed up Rust Docker builds using Docker layer caching.
Cargo - The Rust package manager
rules_rust - Rust rules for Bazel
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 ðŸ¦
fd - A simple, fast and user-friendly alternative to 'find'
dust - A more intuitive version of du in rust