cargo-sweep icon indicating copy to clipboard operation
cargo-sweep copied to clipboard

Add option to clean all release or all debug build artifacts

Open taladar opened this issue 2 years ago • 2 comments

This would allow cleaning of e.g. a project you mostly work with productively but you compile it in debug mode occasionally to fix some bugs or add small features.

The opposite mode would allow cleaning the occasional release build to e.g. benchmark in a project you mostly just develop in debug mode.

taladar avatar Dec 16 '22 10:12 taladar

I like that idea, thanks! Don't have time to write up full mentoring instructions, but the basic idea is to only recurse into the (e.g.) target/debug directory, which happens at a pretty high level and shouldn't need a detailed knowledge of how cargo works.

jyn514 avatar Dec 16 '22 13:12 jyn514

https://doc.rust-lang.org/cargo/commands/cargo-clean.html

I guess cargo clean --release or --profile dev is exactly what you need.

Logarithmus avatar Apr 25 '23 22:04 Logarithmus