Crate cvss

Source
Expand description

§RustSec: Common Vulnerability Scoring System

Latest Version Docs Build Status Safety Dance MSRV Apache 2.0 OR MIT licensed Project Chat

Rust implementation of the Common Vulnerability Scoring System (Version 3.1) Specification.

Documentation

§Minimum Supported Rust Version

Rust 1.56

§License

Licensed under either of:

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

§Usage

The v3::Base type provides the main functionality currently implemented by this crate, namely: support for parsing, serializing, and scoring CVSS:3.0 and CVSS:3.1 Base Metric Group vector strings as described in the CVSS v3.1 Specification.

Serde support is available through the optional serde Cargo feature.

Modules§

v3
Common Vulnerability Scoring System (v3.1)

Enums§

Error
Kinds of errors
MetricType
Enum over all of the available metrics.
Severity
Qualitative Severity Rating Scale

Constants§

PREFIX
Prefix used by all CVSS strings

Traits§

Metric
Trait for CVSS metrics.

Type Aliases§

Result
Result type with the cvss crate’s Error type.