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

app cargo-clean-recursive

A cargo subcommand cleans all projects under specified directory

8 releases (1 stable)

1.0.0 Nov 30, 2024
0.9.7 Oct 14, 2024
0.9.6 Aug 25, 2023
0.9.5 Apr 25, 2022
0.9.1 Jun 7, 2020

#77 in Cargo plugins

Download history 5/week @ 2024-08-29 11/week @ 2024-09-05 9/week @ 2024-09-12 15/week @ 2024-09-19 20/week @ 2024-09-26 16/week @ 2024-10-03 244/week @ 2024-10-10 92/week @ 2024-10-17 20/week @ 2024-10-24 32/week @ 2024-10-31 29/week @ 2024-11-07 24/week @ 2024-11-14 13/week @ 2024-11-21 194/week @ 2024-11-28 42/week @ 2024-12-05

277 downloads per month

MIT/Apache

13KB
229 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
~34K SLoC