cargo

Dependency vulnerability auditing

Use the separately installed RustSec cargo-audit extension to compare locked dependency versions with an advisory database. Review the database freshness, findings, applicable fixes and test results. A clean report does not prove security. Example format: shell. Manual illustration; review prerequisites and side effects before execution. No automatic installation, updates, network calls or configuration changes. Expected result (not executed): Findings depend on the lockfile, advisory snapshot and extension version; none are claimed here. Common mistake: Treating a stale advisory database or a clean scan as proof of safety.

Formal Syntax & Structure

rust syntaxrust
cargo audit

Working Example

Example Snippetrust
cargo audit
Rust Reference