cargo-clean-recursive

Crates.iocargo-clean-recursive
lib.rscargo-clean-recursive
version1.0.0
sourcesrc
created_at2020-06-06 13:00:34.155606
updated_at2024-11-30 05:32:51.932188
descriptionA cargo subcommand cleans all projects under specified directory.
homepage
repositoryhttps://github.com/IgaguriMK/cargo-clean-recursive
max_upload_size
id250666
size32,515
Igaguri (IgaguriMK)

documentation

README

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/
Commit count: 40

cargo fmt