pkg.soopen package index

brew / Rang 6745

cargo-cache mit Homebrew, Nix, pacman installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für cargo-cache in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install cargo-cache

local Homebrew formula metadata

Linux

Nixverifiziert · 92%
nix profile install nixpkgs#cargo-cache

nixpkgs package indexes · pkgs/by-name/ca/cargo-cache/package.nix · Quelle: api.github.com

Arch Linux pacmanverifiziert · 92%
sudo pacman -S cargo-cache

Arch Linux sync databases · cargo-cache · Quelle: geo.mirror.pkgbuild.com

Überblick

Paketzusammenfassung

Display information on the cargo cache, plus optional cache pruning

Befehle und Aliase

  • cargo-cache

Verlauf

Projektgeschichte und Nutzung

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.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 2017-12-05: GitHub repository matthiaskrgr/cargo-cache was created.
  • 2018-10-17: cargo-cache 0.0.0 was published on crates.io.
  • 2022-09-11: Version 0.8.3 was published.
  • 2020s: README documented CI cleanup, sccache summaries, alternative registries, verification, and unreferenced-cache cleanup.

Related projects

  • Cargo's `$CARGO_HOME` cache layout is the main system cargo-cache inspects.
  • sccache is related only as a cache that cargo-cache can summarize; the README says cargo-cache is not itself a compiler cache.
  • Cargo registry archives, registry source checkouts, git databases, and git checkouts are the package-manager structures exposed by the tool.

Quellen

  • GitHub repository API metadata: https://api.github.com/repos/matthiaskrgr/cargo-cache
  • Official README: https://github.com/matthiaskrgr/cargo-cache#readme
  • Package-manager adoption from source_facts.package-manager.
  • crates.io API metadata and versions: https://crates.io/api/v1/crates/cargo-cache

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Build-Metadaten listen 1 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
cargo-cachecliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-08-04
Manager-Version0.8.3
Manager aktualisiert
lokale DatenOK
Upstreamaktuell
neueste erkannte Version0.8.3

https://github.com/matthiaskrgr/cargo-cache

  • InfoNo package-manager update timestamp was available.niedrig Konfidenz

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:cargo-cache
Version0.8.3
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/cargo-cache
Homepagehttps://github.com/matthiaskrgr/cargo-cache
Repositoryhttps://github.com/matthiaskrgr/cargo-cache
LizenzApache-2.0 OR MIT
Quellarchivhttps://github.com/matthiaskrgr/cargo-cache/archive/refs/tags/0.8.3.tar.gz
Build-Abhängigkeitenrust
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-cache
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

Nix95%

cargo-cache

nix profile install nixpkgs#cargo-cache
  • normalized package name match
  • Abgeglichen nach: Cargo Cache
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-cache/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

cargo-cache 0.8.3-4

Display info and prune cargo cache

https://github.com/matthiaskrgr/cargo-cache

sudo pacman -S cargo-cache
  • License: MIT AND Apache-2.0
  • Architecture: x86_64
  • 1 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Cargo Cache
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-cache from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation