#cargo-clean #cargo-subcommand #cargo #recursion #build #directory #projects

app cargo-clean-recursive

A cargo subcommand cleans all projects under specified directory

9 releases (2 stable)

new 1.1.0 Mar 2, 2025
1.0.0 Nov 30, 2024
0.9.7 Oct 14, 2024
0.9.6 Aug 25, 2023
0.9.1 Jun 7, 2020

#88 in Cargo plugins

Download history 24/week @ 2024-11-15 11/week @ 2024-11-22 203/week @ 2024-11-29 61/week @ 2024-12-06 48/week @ 2024-12-13 7/week @ 2024-12-20 8/week @ 2024-12-27 9/week @ 2025-01-03 14/week @ 2025-01-10 17/week @ 2025-01-17 17/week @ 2025-01-24 21/week @ 2025-01-31 16/week @ 2025-02-07 24/week @ 2025-02-14 30/week @ 2025-02-21 232/week @ 2025-02-28

309 downloads per month

MIT/Apache

13KB
247 lines

cargo-clean-recursive

A cargo subcommand cleans all projects under a specified directory.

Installation

Install binary from crates.io:

cargo install cargo-clean-recursive

Usage

To clean all projects under current directory, run this subcommand with no option:

cargo clean-recursive

If you want to clean release build only, use --release / -r flag:

cargo clean-recursive --release

Also, you can use --doc / -d option to clean docs:

cargo clean-recursive --doc

You can specify --release and --doc at the same time. (In this case, debug builds will be cleaned.)

cargo clean-recursive --doc --release

To see how much capacity will be released, specify the --dry-run / -n option. In the case of --dry-run, no actual clean is performed.

cargo clean-recursive --dry-run

You can specify starting directory to recursive search.

cargo clean-recursive ~/my_codes/

Dependencies

~1.2–1.8MB
~33K SLoC