Skip to content

About

Cargo storage management CLI/TUI

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

Repository files navigation

Cargo Storage

CI Status Crates.io MIT licensed

Cargo storage management CLI/TUI

demo

Features

  • Very fast directory discovery
  • Management TUI with realtime updates
  • Headless mode for listing and cleaning
  • clean command with reasonable defaults
  • Support for .cargo/config.toml overrides. (best effort)
  • Support for both Cargo build-dir and target-dir

Installation

# Prebuilt binary (linux x86_64, macOS, Windows x86_64)
cargo binstall cargo-storage

# From source
cargo install cargo-storage

Usage

# 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 --help

Motivation / Scope

This 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.

About

Cargo storage management CLI/TUI

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages