use-cwe 0.0.1

CWE weakness identifier and category primitives for RustUse
Documentation
  • Coverage
  • 29.23%
    19 out of 65 items documented1 out of 19 items with examples
  • Size
  • Source code size: 12.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 992.05 kB 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-cwe

CWE weakness identifier and category primitives for RustUse.

Experimental

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

Example

use use_cwe::{CWE_79_XSS, CweId, CweWeaknessKind};

let id: CweId = "CWE-79".parse()?;

assert_eq!(id, CWE_79_XSS);
assert_eq!(CweWeaknessKind::CrossSiteScripting.as_str(), "cross-site-scripting");
# Ok::<(), use_cwe::CweIdError>(())

Scope

  • CWE ID validation for strings such as CWE-79 and CWE-352.
  • Common high-value CWE constants.
  • Small weakness, impact, likelihood, and taxonomy-source labels.

Non-goals

  • Mirroring the full CWE database.
  • Weakness detection or static analysis.
  • CWE website scraping or network lookup.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license