Crate cpe

source ·
Expand description

A Rust crate for working with CPE 2.3 Well Formed Named and CPE 2.2 URI strings.

Request the permissive_encoding feature to allow literal !, +, and \ characters in CPE URIs. This is a violation of the CPE 2.2 specification, but provides some clemency for developers while still flagging the most egregious errors.

Modules

  • Builder structs for Uri and Wfn CPE values.
  • CPE Component
  • General CPE utilities
  • Error types and Result wrapper.
  • Parsing functions for Cpe and Wfn values
  • Uri - A CPE 2.2 URI
  • CPE Well-Formed Name

Macros

  • Helper macro to create a Uri from literal values.
  • Helper macro to create a Wfn from literal values.