Project status & info:
| Travis Build Status | Dependency Status | License | Crates Version |
| :-----------------: | :---------------: | :-----: | :------------: |
| |
|
|
|
Rust & OS support:
| Stable | Beta | Nightly | Linux | OSX | Windows |
| :----: | :---: | :-----: | :---: | :---: | :-----: |
| |
|
|
|
|
|
Binary application for cleaning \$CARGOHOME/registry & \$CARGOHOME/git folder support orphan cleaning and old cleaning Default \$CARGO_HOME is set as \$HOME/.cargo
Initially you should have rustc and cargo installed for a detail information of how to install rust-lang visit https://rust-lang.org
For installation of cargo-trim:-
You can install from crates.io registry
cargo install cargo-trim
OR
For bleeding edge latest development version:
cargo install --git https://github.com/iamsauravsharma/cargo-trim
By default cargo-trim print out colored output if you want to use a non colored output you can enable out no-color feature
cargo install cargo-trim --features no-color
All cargo-trim can be run using cargo trim <command>
cargo trim --help
will produce out following output which list out all of available output for cargo-trim
```
cargo-trim 0.5.0
Saurav Sharma appdroiddeveloper@gmail.com
Binary application to cleanup $CARGO_HOME cache
USAGE: cargo trim [FLAGS] [OPTIONS] [SUBCOMMAND]
FLAGS: -a, --all Clean up all .cargo/registry & .cargo/git follow config file data -c, --clear Clear config file data -n, --dry-run Run command in dry run mode to see what would be removed -f, --force Force clear cache without reading conf file -h, --help Prints help information -l, --light Light cleanup repos by removing git checkout and registry source but stores git db and registry archive for future compilation without internet requirement -o, --old-clean Clean old cache crates -z, --old-orphan-clean Clean crates which is both old and orphan -x, --orphan-clean Clean orphan cache crates i.e all crates which are not present in lock file generated till now use cargo trim -u to guarantee your all project generate lock file -q, --query Return size of different .cargo/cache folders -u, --update Generate and Update Cargo.lock file present inside config directory folder path -V, --version Prints version information
OPTIONS:
-e, --exclude
SUBCOMMANDS: clear Clear current working directory from cargo cache config completions Generate tab-completions scripts for shell config Query config file data git Perform operation only to git related cache file help Prints this message or the help of the given subcommand(s) init Initialize current working directory as cargo trim directory list List out crates registry Perform operation only to registry related cache file remove Remove values from config file ```
cargo-trim store its config file to config directory of OS and name config file as cargo_trim_config.json
.
In file cargo-trim stores out information about directory of rust projects and exclude and include crates list for cargo trim.