cargo-clean-global
cargo-clean-global is a Cargo plugin that finds Cargo projects on your machine and cleans their build output directories in one command.
It is designed as the practical equivalent of a global Cargo clean operation. Because Cargo plugins cannot extend the built-in cargo clean command with a --global flag, this project is used as:
cargo clean-globalDirect execution via cargo-clean-global is intentionally rejected. Use the Cargo subcommand form only.
Installation
cargo install cargo-clean-globalInstall from a local checkout during development:
cargo install --path .Usage
Clean all discovered Cargo project build directories:
cargo clean-globalSkip the confirmation prompt and clean immediately:
cargo clean-global --yesPreview what would be cleaned without deleting anything:
cargo clean-global --dry-runRestrict scanning to a specific directory:
cargo clean-global --root ~/projects