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
#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc = include_str!("../README.md")]
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustSec/logos/main/rustsec-logo-lg.png")]
#![forbid(unsafe_code)]
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
#[cfg(feature = "v3")]
pub mod v3;
mod error;
mod metric;
mod severity;
pub use crate::{
error::{Error, Result},
metric::{Metric, MetricType},
severity::Severity,
};
pub const PREFIX: &str = "CVSS";