---
title: "cargo-audit (Rust advisories)"
description: "Checks Cargo.lock against the RustSec advisory database with cargo-audit. Reads the lockfile only, never the project's .cargo/audit.toml; nothing is compiled or fetched from the project."
url: https://openaudit.se/auditors/code.cargo-audit/
---

# cargo-audit (Rust advisories)

`code.cargo-audit`

Checks Cargo.lock against the RustSec advisory database with cargo-audit. Reads the lockfile only, never the project's .cargo/audit.toml; nothing is compiled or fetched from the project.

- **Engine:** Wrapped scanner
- **Wraps:** `cargo-audit`
- **Targets:** Codebase
- **Areas:** Supply chain, Security
- **Runs:** By default, when the target applies
- **Network:** Contacts services beyond the target

## Run only this auditor

```sh
bunx @openaudit/cli . --only code.cargo-audit
```

Wraps cargo-audit. When it isn't installed, the auditor is skipped with an install hint and the rest of the audit runs.

## More supply chain auditors

- [Vulnerable dependencies](https://openaudit.se/auditors/code.dependencies/) (`code.dependencies`)
- [Dependency health](https://openaudit.se/auditors/code.dependency-health/) (`code.dependency-health`)
- [End-of-life runtimes and frameworks](https://openaudit.se/auditors/code.eol/) (`code.eol`)
- [Lockfile integrity and install scripts](https://openaudit.se/auditors/code.lockfiles/) (`code.lockfiles`)
- [osv-scanner dependency scan](https://openaudit.se/auditors/code.osv-scanner/) (`code.osv-scanner`)
- [govulncheck (Go vulnerabilities)](https://openaudit.se/auditors/code.govulncheck/) (`code.govulncheck`)
- [pip-audit (Python vulnerabilities)](https://openaudit.se/auditors/code.pip-audit/) (`code.pip-audit`)
- [npm audit](https://openaudit.se/auditors/code.npm-audit/) (`code.npm-audit`)
