cargo-cache
brew install cargo-cache
v0.8.3
Apache-2.0 OR MIT
Display information on the cargo cache, plus optional cache pruning
21
30-day installs · #6654
71
90-day · #6430
264
365-day · #6649
984
★ GitHub stars · updated 3y ago
Build dependencies
Links
- https://github.com/matthiaskrgr/cargo-cache
- GitHub: matthiaskrgr/cargo-cache
- Brew formula source: Formula/c/cargo-cache.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"rust"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Display information on the cargo cache, plus optional cache pruning",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:07+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cargo-cache",
"github_default_branch": "master",
"github_last_commit_at": "2023-06-04T10:29:12Z",
"github_readme_excerpt": "## cargo cache\n\n[](https://github.com/matthiaskrgr/cargo-cache/actions) \u003c!-- [](https://deps.rs/repo/github/matthiaskrgr/cargo-cache)\u0027 --\u003e\n[](https://crates.io/crates/cargo-cache)\n[](https://lib.rs/crates/cargo-cache)\n\nDisplay information on the cargo cache (`~/.cargo/` or `$CARGO_HOME`). Optional cache pruning.\n\n\n\n\n#### Key Features:\n* check the size of the cargo cache and its components (cmd: `cargo cache`)\n* do a simple cleanup removing checkouts but keeping original files needed for reconstruction on disk (`--autoclean`)\n* clean up everything (cargo will re-download as needed)\n* dry-run to see what would be removed (`--dry-run`)\n* recompress git repos (`--gc`)\n* search cache via regex queries (`cargo cache query \"reg.*x\"`)\n* print crates that take the most space (`--top-cache-items`)\n* alternative registries supported\n* remove files older or younger than X (`--remove-if-{older,younger}-than`)\n* builds and runs on `stable`, `beta` and `nightly` channel\n* purge cache entries not used to build a specified crate (`cargo cache clean-unref`)\n* print size stats on a local sccache build cache (`cargo cache sc`)\n* verify extracted crate sources (`cargo cache verify`)\n\n#### Installation:\n```cargo install cargo-cache```\n\nor for the bleeding edge development version:\n\n```cargo install --git https://github.com/matthiaskrgr/cargo-cache cargo-cache```\n\n#### Default output (`cargo cache`):\nThis only calculates the sizes and does not touch anything:\n````\nCargo cache \u0027/home/matthias/.cargo\u0027:\n\nTotal: 4.22 GB\n 102 installed",
"github_repo": "matthiaskrgr/cargo-cache",
"github_stars": 984,
"github_topics": [],
"homepage": "https://github.com/matthiaskrgr/cargo-cache",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 21,
"installs_365d": 264,
"installs_90d": 71,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0 OR MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "cargo-cache",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 6654,
"rank_365d": 6649,
"rank_90d": 6430,
"raw_hash": "16d501ff10ce2ad3",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/cargo-cache.rb",
"tap": "homebrew/core",
"test_dependencies": [
"rustup"
],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.8.3",
"versioned_formulae": [],
"why_use_this": null
}