Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix, pacman, zypper 安装 cargo-audit

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

安装

其他安装命令

macOS

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

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add cargo-audit

Alpine Linux edge package indexes · cargo-audit · 来源: dl-cdn.alpinelinux.org

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

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

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

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

openSUSE zypper已验证 · 92%
sudo zypper install cargo-audit

openSUSE Tumbleweed package metadata · cargo-audit · 来源: download.opensuse.org

概览

软件包摘要

Audit Cargo.lock files for crates with security vulnerabilities

命令和别名

  • cargo-audit

历史

项目历史与用法

cargo-audit is the canonical RustSec command-line tool for scanning Cargo.lock files against the RustSec Advisory Database. It is one of the Rust ecosystem's best-known supply-chain security utilities because it connects ordinary Cargo projects to a community-maintained vulnerability database.

项目历史

The RustSec repository was created in February 2017 as RustSec API and tooling. cargo-audit became the user-facing Cargo subcommand for checking project lockfiles against advisories published in the RustSec Advisory Database.

The official RustSec site describes RustSec as a vulnerability database for Rust crates published through crates.io and lists cargo-audit as the get-started tool for auditing Cargo.lock files. The cargo-audit README documents lockfile auditing, advisory ignores, CI usage, an experimental fix command, and binary auditing.

采用历史

cargo-audit became a standard safety check in Rust projects because it fits Cargo's workflow: install the subcommand, run it at the top level of a project, and fail CI when a dependency matches an advisory.

Distribution adoption is broad. The supplied Homebrew facts list Alpine, Homebrew, Nix, Arch Linux, and openSUSE packages, and the upstream README explicitly documents installation through Alpine, Arch Linux, Homebrew, and OpenBSD in addition to `cargo install`.

使用方式

The common usage is `cargo audit` in a project containing Cargo.lock. The tool reports advisories from the RustSec database and can be wired into CI systems; the README includes examples for Travis CI and points GitHub Actions users to the RustSec audit-check action.

cargo-audit also has a binary-auditing path. The README documents `cargo audit bin`, noting that binaries built with cargo-auditable can be audited accurately because their dependency lists are embedded in the executable.

为什么软件包爱好者会关心

cargo-audit is package-nerd significant because it made Rust vulnerability metadata operational at package-install and CI time. For Rust projects, Cargo.lock is the exact package graph, and cargo-audit turns that graph into a security boundary.

It also helped normalize advisory-driven package hygiene in Rust. Instead of treating vulnerability feeds as external enterprise tooling, cargo-audit made them part of the everyday Cargo subcommand culture.

时间线

  • 2017: rustsec/rustsec repository created on GitHub.
  • 2021: GitHub releases include cargo-audit/v0.16.0 under the rustsec repository release scheme.
  • 2026: RustSec site continues to list cargo-audit as primary tooling for Cargo.lock vulnerability auditing.

Related projects

  • cargo-audit is tied directly to the RustSec Advisory Database and the RustSec advisory-db repository where vulnerabilities are reported.
  • Related tools include cargo-auditable for binary dependency embedding, audit-check for GitHub Actions, cargo-deny for broader dependency policy checks, and reachsec as an experimental reachability companion mentioned by the cargo-audit README.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cargo-auditcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本0.22.2
管理器更新时间2026-06-05
本地数据OK
上游当前
检测到的最新版本cargo-audit/v0.22.2

https://github.com/rustsec/rustsec

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:cargo-audit
版本0.22.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cargo-audit
主页https://rustsec.org/
仓库https://github.com/rustsec/rustsec
上游文档https://github.com/rustsec/rustsec/tree/main/cargo-audit#readme
许可证Apache-2.0 OR MIT
源码归档https://github.com/rustsec/rustsec/archive/refs/tags/cargo-audit/v0.22.2.tar.gz
最后更新2026-06-05T15:11:00Z
Pulseupdated
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

cargo-audit

nix profile install nixpkgs#cargo-audit
  • normalized package name match
  • 匹配方式:Cargo Audit
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-audit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

cargo-audit 0.22.1-r0

Audit Cargo.lock for crates with security vulnerabilities

https://github.com/RustSec/rustsec

sudo apk add cargo-audit
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: cargo-audit
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Cargo Audit
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-audit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

cargo-audit-doc 0.22.1-r0

Audit Cargo.lock for crates with security vulnerabilities (documentation)

https://github.com/RustSec/rustsec

sudo apk add cargo-audit-doc
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: cargo-audit
  • normalized package name match
  • 匹配方式:Cargo Audit
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-audit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

cargo-audit 0.22.2-1

Audit Cargo.lock for crates with security vulnerabilities

https://github.com/RustSec/cargo-audit

sudo pacman -S cargo-audit
  • License: Apache-2.0 AND MIT
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Cargo Audit
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-audit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

cargo-audit 0.22.1~git0.efcde93-2.4

Audit rust sources for known security vulnerabilities

https://github.com/RustSec/cargo-audit

sudo zypper install cargo-audit
  • License: ( 0BSD OR MIT OR Apache-2.0 ) AND ( Apache-2.0 OR BSL-1.0 ) AND ( Apache-2.0 OR MIT ) AND ( MIT OR Zlib OR Apache-2.0 ) AND ( Unlicense OR MIT ) AND ( Zlib OR
  • Category: Development/Languages/Rust
  • Architecture: x86_64
  • Source Package: cargo-audit
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Cargo Audit
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cargo-audit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

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

使用的来源

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