use-cvss 0.0.1

CVSS severity, vector, and score metadata primitives for RustUse
Documentation
  • Coverage
  • 47.62%
    30 out of 63 items documented1 out of 33 items with examples
  • Size
  • Source code size: 12.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.51 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-security
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-cvss

CVSS severity, vector, and score metadata primitives for RustUse.

Experimental

use-cvss is experimental while the use-security workspace remains below 0.3.0. Expect small API adjustments during the first release wave.

Example

use use_cvss::{CvssScore, CvssSeverity, severity_from_score};

let score = CvssScore::new(9.8)?;

assert_eq!(score.value(), 9.8);
assert_eq!(severity_from_score(score), CvssSeverity::Critical);
# Ok::<(), use_cvss::CvssScoreError>(())

Scope

  • CVSS version, severity, metric, and vector metadata.
  • Score range validation for values from 0.0 through 10.0.
  • Lightweight severity classification from a numeric score.

Non-goals

  • Full CVSS mathematical scoring.
  • Vector metric normalization beyond non-empty validation.
  • Vulnerability scanning or advisory lookup.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license