Cargo cleaner

apollo b06a7e2190 Release v0.2.2 3 ngày trước cách đây
src 01fae74643 Added debug bool, Ignore hidden 3 ngày trước cách đây
.gitignore 46b88aa2e9 Release v0.1.0 1 năm trước cách đây
CHANGELOG 478ed1391a v0.2.1 11 tháng trước cách đây
Cargo.lock 5d24d9f41b Release v0.2.2 3 ngày trước cách đây
Cargo.toml 5d24d9f41b Release v0.2.2 3 ngày trước cách đây
LICENSE 1ba6bd4668 Initial commit 1 năm trước cách đây
README.md 5d24d9f41b Release v0.2.2 3 ngày trước cách đây

README.md

rustpan

It's not a dust pan, it's a rust pan. (A cargo cleaner)

See CHANGELOG for info on v0.2.2

Installation

Simple cargo install --path .

How it works

It's a simple rust crate that goes thru the current working directory finding crates (via target directory) and calls cargo clean to reduce the number of files stored on the file system.

As of v0.1.1 it also supports nested crates... (this feature is further enhanced in v0.1.2)

As of v0.1.6 it also only cleans after last modified and/or last accessed exceed a certain X days (This feature first arrived in v0.1.3 and was improved thru v0.1.4, v0.1.5 and finalized in v0.1.6)

As of v0.2.2 it ignores "hidden" files & directories (the likes of .git, .cargo, .cache)

# E.G.
dev/rust/major_project/
dev/rust/major_project/crate1/
dev/rust/major_project/crate1/src/
dev/rust/major_project/crate1/target/
dev/rust/major_project/crate2/
dev/rust/major_project/crate2/src/
dev/rust/major_project/crate2/target/
dev/rust/major_project/crate3/
dev/rust/major_project/crate3/src/
dev/rust/major_project/crate3/target/

The above will be cleaned even if you run rust pan from dev/rust/ (Or you could run it in dev/rust/major_project, which might be better if you only wanted to clean just a handful of crates)

In v0.1.2, the above can also be cleaned from dev/

In v0.2.2, the above can also be cleaned from / (An issue with permissions has been fixed by simply not going over hidden files/directories)