Cargo storage management CLI/TUI
- Very fast directory discovery
- Management TUI with realtime updates
- Headless mode for listing and cleaning
cleancommand with reasonable defaults- Support for
.cargo/config.tomloverrides. (best effort) - Support for both Cargo
build-dirandtarget-dir
# Prebuilt binary (linux x86_64, macOS, Windows x86_64)
cargo binstall cargo-storage
# From source
cargo install cargo-storage# Open the management TUI
cargo storage
# List the target directories w/o the TUI
cargo storage list
# Clean the target directories (defaults to older than 30d AND at least 100MB)
cargo storage clean
# Run --help to see more options
cargo storage --helpThis project was motivated primarily by me needing a way to monitor directory sizes while working on a
cross workspace cache for Cargo. Other solutions existed but they primarily focused on cleaning up unused target directories.
I set out just to solve my problem but added on some additional features like cleaning up old target dirs since it was fairly easy
to do so once the core was in place. In the future I'd like to make this tool a general management solution for Cargo's on disc files.
If you have an idea or issue, please raise it on the GitHub issue tracker.
