Registry / security / rustsec

rustsec

JSON →
library0.33.0rscratesunverified

Client library for querying the RustSec security advisory database to check for vulnerabilities in Rust crates.

# Cargo.toml [dependencies] rustsec = "0.33.0"
INSTALL
IMPORT
SIG · RUSTSEC
R
rustsec
securityrustv0.33.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Database
use rustsec::Database;

Fetch and load the RustSec advisory database.

use rustsec::Database; fn main() { let db = Database::fetch().unwrap(); println!("Loaded {} advisories", db.advisories().len()); }
Debug
Known issues
gotchaRequires network access to fetch advisory database; offline usage needs pre-downloaded data.
fix
Use Database::open() with a local path if offline.
affects: >=0.20.0
Upgrade
Version history
0.33.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Resources
rustsec — cargo add rustsec · libregistry