Skip to content
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

Add option to clean all release or all debug build artifacts #76

Open
taladar opened this issue Dec 16, 2022 · 2 comments
Open

Add option to clean all release or all debug build artifacts #76

taladar opened this issue Dec 16, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@taladar
Copy link

taladar commented Dec 16, 2022

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 taladar changed the title Add option to clean all release or all debug build Add option to clean all release or all debug build artifacts Dec 16, 2022
@jyn514
Copy link
Collaborator

jyn514 commented Dec 16, 2022

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.

@Logarithmus
Copy link

Logarithmus commented Apr 25, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants