Crate rustsec[][src]

rustsec: client library for the RustSec Security Advisory Database

This crate is primarily intended for use with the cargo-audit tool:

https://crates.io/crates/cargo-audit

Re-exports

pub use cargo_lock;
pub use fs_err as fs;
pub use platforms;
pub use semver;
pub use crate::advisory::Advisory;
pub use crate::collection::Collection;
pub use crate::database::Database;
pub use crate::error::Error;
pub use crate::error::ErrorKind;
pub use crate::report::Report;
pub use crate::vulnerability::Vulnerability;
pub use crate::warning::Warning;

Modules

advisory

Security advisories in the RustSec database

collection

Package collections

database

Database containing RustSec security advisories

error

Error types used by this crate

fixer

Automatically attempt to fix vulnerable dependencies

lockfile

Parser for Cargo.lock files

package

Rust packages enumerated in Cargo.lock

registry

Support for interacting with the local crates.io registry index

report

Vulnerability report generator

repository

Repository handling for the RustSec advisory DB

vulnerability

Vulnerabilities represent the interesection of the Advisory database and a particular Cargo.lock file.

warning

Warnings sourced from the Advisory DB

Structs

Repository

Git repository for a Rust advisory DB

Version

Represents a version number conforming to the semantic versioning scheme.

VersionReq

A VersionReq is a struct containing a list of ranges that can apply to ranges of version numbers. Matching operations can then be done with the VersionReq against a particular version to see if it satisfies some or all of the constraints.

Constants

VERSION

Current version of the RustSec crate