cargo_audit/
lib.rs

1//! Audit Cargo.lock files for crates containing security vulnerabilities.
2//!
3//! `cargo audit` is a Cargo subcommand. Install it using the following:
4//!
5//! ```text
6//! $ cargo install cargo-audit --locked
7//! ```
8//!
9//! Then run `cargo audit` in the toplevel directory of any crate or workspace.
10//!
11//! If you wish to consume its core functionality as a library, see the
12//! documentation for the `rustsec` crate:
13//!
14//! <https://docs.rs/rustsec/>
15
16#![doc(
17    html_logo_url = "https://raw.githubusercontent.com/RustSec/logos/main/rustsec-logo-lg.png",
18    html_root_url = "https://docs.rs/cargo-audit/0.16.0"
19)]
20#![forbid(unsafe_code)]
21#![warn(missing_docs, rust_2018_idioms, trivial_casts, unused_qualifications)]
22
23pub mod application;
24pub mod auditor;
25pub mod commands;
26pub mod config;
27pub mod error;
28pub mod lockfile;
29mod prelude;
30pub mod presenter;
31mod sarif;
32pub use sarif::SarifLog;
33
34/// Current version of the `cargo-audit` crate
35pub const VERSION: &str = env!("CARGO_PKG_VERSION");