Cargo Wipe
Cargo subcommand that recursively finds and optionally wipes all "target" or "node_modules" folders that are found in the current path.
Usage
Install
The Rust toolchain is a prerequisite.
Read the docs
Use
To find build folders for <language>
that can potentially be deleted run
where <language>
is rust
or node
. For example:
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.
Directories are found according to the following logic:
rust
: all directories calledtarget
containing a file called.rustc_info.json
.node
: all directories callednode_modules
.
You can use the -i <path>
argument to ignore certain paths.
Usage Example
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
Releases
-
Update version in
Cargo.toml
-
Update CHANGELOG.md
-
Commit
-
Add tag
-
Push
-
Release
Create a new release.
publish.yml
GitHub Action will pick it up and do the actual release to crates.io.