cargo-cleanall

Crates.iocargo-cleanall
lib.rscargo-cleanall
version0.1.3
sourcesrc
created_at2022-10-27 10:44:37.420429
updated_at2023-01-24 08:37:51.176317
descriptionCargo plugin to clean all cargo projects in a directory
homepage
repositoryhttps://github.com/LeSnake04/cargo-cleanall
max_upload_size
id699055
size75,719
(LeSnake04)

documentation

README

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"

Commit count: 28

cargo fmt