#![doc = include_str!("../README.md")]
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustSec/logos/main/rustsec-logo-lg.png")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![forbid(unsafe_code)]
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
#[macro_use]
mod error;
pub mod advisory;
mod collection;
pub mod database;
pub mod osv;
pub mod report;
pub mod repository;
mod vulnerability;
mod warning;
#[cfg(feature = "fix")]
mod fixer;
#[cfg(feature = "git")]
#[cfg_attr(docsrs, doc(cfg(feature = "git")))]
mod cached_index;
#[cfg(feature = "git")]
#[cfg_attr(docsrs, doc(cfg(feature = "git")))]
pub mod registry {
pub use super::cached_index::{CachedIndex, ClientBuilder};
}
pub use cargo_lock::{self, package, Lockfile, SourceId};
pub use fs_err as fs;
pub use platforms;
pub use semver::{self, Version, VersionReq};
pub use crate::{
advisory::Advisory,
collection::Collection,
database::Database,
error::{Error, ErrorKind, Result},
report::Report,
vulnerability::Vulnerability,
warning::{Warning, WarningKind},
};
#[cfg(feature = "fix")]
pub use crate::fixer::Fixer;
#[cfg(feature = "git")]
pub use crate::repository::git::Repository;
use std::collections::{btree_map as map, btree_set as set, BTreeMap as Map, BTreeSet as Set};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");