macOS
brew install cargo-cachelocal Homebrew formula metadata
brew
Display information on the cargo cache, plus optional cache pruning. Version 0.8.3 via Homebrew; verified from local package data.
install
brew install cargo-cachelocal Homebrew formula metadata
nix profile install nixpkgs#cargo-cachenixpkgs package indexes · pkgs/by-name/ca/cargo-cache/package.nix · source: api.github.com
sudo pacman -S cargo-cacheArch Linux sync databases · cargo-cache · source: geo.mirror.pkgbuild.com
overview
Display information on the cargo cache, plus optional cache pruning
history
cargo-cache is a Cargo subcommand for inspecting and pruning the Cargo home cache, including registry archives, extracted sources, git checkouts, installed binaries, toolchains, local target caches, and sccache summaries.
The cargo-cache repository was created in December 2017, and the first crates.io release followed in October 2018. The README describes it as a tool for displaying information about `~/.cargo/` or `$CARGO_HOME`, with optional cache pruning.
The project began as the maintainer's learning-by-doing Rust project, according to the README, but accumulated a practical feature set: size summaries, autoclean, dry-run removals, git repository garbage collection, regex cache queries, largest-item reports, alternative registry support, age-based removal, unreferenced-cache cleanup, sccache stats, and verification of extracted crate sources.
cargo-cache gained adoption because Cargo caches can become large on developer machines and CI systems. The README explicitly discusses CI cleanup before storing `$CARGO_HOME`, and crates.io reports more than 3 million downloads.
The input records Homebrew, Nix, and Arch packaging. Its high download count for a maintenance tool reflects a recurring need rather than glamour: package caches grow quietly, and developers want a Cargo-aware cleanup tool before deleting directories by hand.
`cargo cache` prints a size breakdown without deleting anything. `cargo cache --autoclean` removes extracted crate sources and git checkouts while keeping original archives and bare repositories so Cargo can reconstruct them as needed.
Other documented workflows include `--top-cache-items` for largest entries, `--dry-run` before removals, `cargo cache query` for regex searches, `cargo cache clean-unref` for cache entries not referenced by a Cargo.toml, `cargo cache sc` for local sccache stats, and `cargo cache verify` for extracted crate sources.
cargo-cache is package-nerd plumbing: it exposes the physical layout and cost of Cargo's package cache. That makes it useful for people who care about how registries, source archives, git checkouts, installed binaries, and CI caches accumulate over time.
It also documents a conservative cleanup philosophy. The default inspection mode is read-only, and autoclean keeps reconstructable originals, matching the practical rule that cache tools should save disk without surprising the package manager.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cargo-cache | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/matthiaskrgr/cargo-cache
install metadata
| Package key | brew:cargo-cache |
|---|---|
| Version | 0.8.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cargo-cache |
| Homepage | https://github.com/matthiaskrgr/cargo-cache |
| Repository | https://github.com/matthiaskrgr/cargo-cache |
| Upstream docs | https://github.com/matthiaskrgr/cargo-cache#readme |
| License | Apache-2.0 OR MIT |
| Source archive | https://github.com/matthiaskrgr/cargo-cache/archive/refs/tags/0.8.3.tar.gz |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-cache |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cargo-cache
nix profile install nixpkgs#cargo-cachecargo-cache 0.8.3-4
Display info and prune cargo cache
https://github.com/matthiaskrgr/cargo-cache
sudo pacman -S cargo-cachesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.