#cargo-subcommand #cli #tool #cargo

app cargo-cleanall

Cargo plugin to clean all cargo projects in a directory

4 releases

0.1.3 Jan 24, 2023
0.1.2 Oct 27, 2022
0.1.1 Oct 27, 2022
0.1.0 Oct 27, 2022

#593 in Cargo plugins

AGPL-3.0

26KB
426 lines

Cargo Cleanall

A simple tool to clean all cargo projects in a directory.

Help

Cargo plugin to clean all cargo projects in a directory

Usage: cargo cleanall [OPTIONS] <PATHS>...

Arguments:
  <PATHS>...  Path to search for projects to clean

Options:
  -H, --hidden           Get size of and clean hidden folders
  -d, --dry              Don't clean any files
  -i, --ignore <ignore>  Ignore folders
  -s, --no-size          Don't calculate the size
  -h, --help             Print help information
  -V, --version          Print version information

Output

$ cargo cleanall .
INFO [cargo_cleanall] 1.2 GB => 117.8 MB (-1.1 GB: -90.303 %)

Features

  • Asynchronous scan and cleanup for fast performance
  • Show size from before and after as well as an percentage (Can be turned off).
  • Option to include hidden files
  • Option to ignore folders

Roadmap

  • Bugfixes
  • Code cleanup
  • Optimizations Code reviews, suggestions and bug reports are welcome.

Logging

This crate uses flexi_logger. To enable verbose output run with enviroment variable RUST_LOG="debug"

Dependencies

~10–21MB
~308K SLoC