use-cve 0.0.1

CVE identifier and vulnerability metadata primitives for RustUse
Documentation
  • Coverage
  • 74.36%
    29 out of 39 items documented1 out of 24 items with examples
  • Size
  • Source code size: 13.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-cve

CVE identifier and vulnerability metadata primitives for RustUse.

Experimental

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

Example

use use_cve::{CveId, CveStatus};

let id: CveId = "CVE-2024-12345".parse()?;

assert_eq!(id.year().value(), 2024);
assert_eq!(id.sequence().as_str(), "12345");
assert_eq!(CveStatus::Published.as_str(), "published");
# Ok::<(), use_cve::CveIdError>(())

Scope

  • CVE ID validation for strings such as CVE-2024-12345.
  • Small CVE status, source, reference, and record-kind labels.
  • Display and parsing helpers for local metadata models.

Non-goals

  • CVE, NVD, GitHub, GitLab, or advisory database access.
  • Vulnerability scanning.
  • Mirroring CVE records or vulnerability feeds.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license