macOS
brew install cargo-auditlocal Homebrew formula metadata
安装
brew install cargo-auditlocal Homebrew formula metadata
sudo apk add cargo-auditAlpine Linux edge package indexes · cargo-audit · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-auditnixpkgs package indexes · pkgs/by-name/ca/cargo-audit/package.nix · 来源: api.github.com
sudo pacman -S cargo-auditArch Linux sync databases · cargo-audit · 来源: geo.mirror.pkgbuild.com
sudo zypper install cargo-auditopenSUSE Tumbleweed package metadata · cargo-audit · 来源: download.opensuse.org
概览
Audit Cargo.lock files for crates with security vulnerabilities
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cargo-audit | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/rustsec/rustsec
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-audit |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cargo-audit
nix profile install nixpkgs#cargo-auditcargo-audit 0.22.1-r0
Audit Cargo.lock for crates with security vulnerabilities
https://github.com/RustSec/rustsec
sudo apk add cargo-auditcargo-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-doccargo-audit 0.22.2-1
Audit Cargo.lock for crates with security vulnerabilities
https://github.com/RustSec/cargo-audit
sudo pacman -S cargo-auditcargo-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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.