Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cargo-wipe

> 包管理
Open source

Cargo subcommand that recursively finds and optionally wipes all "target" (Rust), "node_modules" (Node), or ".terraform" (Terraform) folders that are found in

181 stars0 likes3 views
WebsiteGitHub

About

Cargo subcommand that recursively finds and optionally wipes all "target" (Rust), "node_modules" (Node), or ".terraform" (Terraform) folders that are found in

Cargo Wipe

Crates CI codecov license Crates.io
Cargo subcommand that recursively finds and optionally wipes all "target" (Rust), "node_modules" (Node), or ".terraform" (Terraform) folders that are found in the current path.

Usage

Install

The Rust toolchain is a prerequisite.

bash
cargo install cargo-wipe

Read the docs

bash
cargo wipe --help

Use

To find build folders for `` that can potentially be deleted run

bash
cargo wipe 

where `` is rust or node. For example:

bash
cargo wipe rust

This will run in dry-run mode and just print the list of directories to delete. To actually delete them run it again with the -w flag.

bash
cargo wipe rust -w

Directories are found according to the following logic:

  • rust: all directories called target containing a file called .rustc_info.json.
  • node: all directories called node_modules.

You can use the -i argument to ignore certain paths.

Usage Example

Usage Example Screenshot

Contributions

Contributions are welcome and encouraged! See /issues for ideas, or suggest your own! If you're thinking to create a PR with large feature/change, please first discuss it in an issue.

PR Checks

bash
    cargo make ci-flow

Releases

  • Update version in Cargo.toml

  • Update CHANGELOG.md

  • Commit

  • Add tag

    bash
    git tag -a vX.X.X
  • Push

    bash
    git push --follow-tags
  • Release
    Create a new release.
    publish.yml GitHub Action will pick it up and do the actual release to crates.io.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcargocleanrusttarget

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image