Crate rustsec[][src]

Expand description

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::database::Database;
pub use crate::report::Report;
pub use crate::warning::Warning;

Modules

Security advisories in the RustSec database

Database containing RustSec security advisories

Parser for Cargo.lock files

Provides support for exporting to the interchange format defined by https://github.com/google/osv

Rust packages enumerated in Cargo.lock

Support for interacting with the local crates.io registry index

Vulnerability report generator

Repository handling for the RustSec advisory DB

Warnings sourced from the Advisory DB

Structs

Error type

Auto-fixer for vulnerable dependencies

Git repository for a Rust advisory DB

SemVer version as defined by https://semver.org.

SemVer version requirement describing the intersection of some version comparators, such as >=1.2.3, <1.8.

A vulnerable package and the associated advisory

Enums

Collections of packages (crates vs rust).

Custom error type for this library

Constants

Current version of the RustSec crate

Type Definitions

Result alias with the rustsec crate’s Error type.