1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustSec/logos/master/rustsec-logo-lg.png",
html_root_url = "https://docs.rs/rustsec/0.17.0"
)]
#![forbid(unsafe_code)]
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
#[macro_use]
pub mod error;
pub mod advisory;
pub mod collection;
pub mod database;
#[cfg(feature = "fix")]
pub mod fixer;
pub mod registry;
pub mod report;
pub mod repository;
pub mod version;
pub mod vulnerability;
pub mod warning;
pub use cargo_lock;
pub use platforms;
pub use crate::{
advisory::Advisory,
collection::Collection,
database::Database,
error::{Error, ErrorKind},
report::Report,
repository::Repository,
version::{Version, VersionReq},
vulnerability::Vulnerability,
warning::Warning,
};
pub use cargo_lock::{lockfile, package};
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");