pkg.soopen package index

brew / 排名 6741

使用 Homebrew, Nix, pacman 安装 cargo-cache

查看 cargo-cache 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cargo-cache

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#cargo-cache

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

Arch Linux pacman已验证 · 92%
sudo pacman -S cargo-cache

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

概览

软件包摘要

Display information on the cargo cache, plus optional cache pruning

命令和别名

  • cargo-cache

历史

项目历史与用法

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.

时间线

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

来源

  • 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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cargo-cache可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本0.8.3
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:cargo-cache
版本0.8.3
软件包管理器Homebrew
主页https://github.com/matthiaskrgr/cargo-cache
仓库https://github.com/matthiaskrgr/cargo-cache
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

cargo-cache

nix profile install nixpkgs#cargo-cache
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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