Cargo Audit
Run cargo audit to check for security vulnerabilities in dependencies.
Steps
- •Check if cargo-audit is installed:
cargo audit --version 2>/dev/null- •If not installed:
cargo install cargo-audit
- •If not installed:
- •Run:
cargo audit - •Summarize any advisories found (ID, crate, description, severity)
- •If no advisories: confirm all dependencies are clean
Output
Report advisory count, severity levels, and whether any affected crates are in the direct dependency list vs transitive (check Cargo.toml to distinguish).