cargo-sweep
A cargo subcommand for cleaning up unused build files generated by Cargo (by holmgr)
proc-macro2
By dtolnay
cargo-sweep | proc-macro2 | |
---|---|---|
9 | 4 | |
680 | 679 | |
- | - | |
6.6 | 9.0 | |
about 2 months ago | 8 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
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
proc-macro2
Posts with mentions or reviews of proc-macro2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-05.
- Blog Post: Fast Rust Builds
-
SafeLock: a lock with a `const fn` constructor and no `unsafe`
I'll just quote what u/dtolnay told you over a month ago on GitHub:
- Rust's unsafe keyword is a critical innovation for information security. I believe that Safe Rust will eventually be a foundational technology for all of human society.
-
Code review request, safe-regex crate
I was curious about the motivation for this. And in particular, the motivation for not just a safe regex library but also to fork and presumably maintain several other forks of core crates as dependencies of safe-regex. I found this PR which illuminates the OP's thinking a bit more: https://github.com/alexcrichton/proc-macro2/pull/261
What are some alternatives?
When comparing cargo-sweep and proc-macro2 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
mold - Mold: A Modern Linker ðŸ¦
cargo-clean-all
kondo - Cleans dependencies and build artifacts from your projects.
regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
squatternaut - A snapshot of name squatting on crates.io
cargo-hack - Cargo subcommand to provide various options useful for testing and continuous integration.
Cargo - The Rust package manager