← 全部工具

clovu/cargo-clean-global

热度 65 更新于 开发与构建

A safe Cargo plugin that cleans target directories across local Cargo projects.

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

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-global

Direct execution via cargo-clean-global is intentionally rejected. Use the Cargo subcommand form only.

Installation

cargo install cargo-clean-global

Install from a local checkout during development:

cargo install --path .

Usage

Clean all discovered Cargo project build directories:

cargo clean-global

Skip the confirmation prompt and clean immediately:

cargo clean-global --yes

Preview what would be cleaned without deleting anything:

cargo clean-global --dry-run

Restrict scanning to a specific directory:

cargo clean-global --root ~/projects