Install and run cargo audit to scan your Rust dependencies for known security vulnerabilities.
Run cargo install cargo-audit to install the tool, then execute cargo audit in your project root to scan for vulnerabilities.
cargo install cargo-audit
cargo audit
This command checks your Cargo.lock file against the RustSec advisory database and reports any known security issues in your dependencies.
Cargo audit is a security scanner for Rust projects. It checks the list of libraries your project uses against a database of known security flaws. Think of it like a health check for your software's ingredients to ensure none are poisoned.