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
Builder structs for Uri and Wfn CPE values.
component
CPE Component
cpe
General CPE utilities
error
Error types and Result wrapper.
parse
Parsing functions for Cpe and Wfn values
uri
Uri - A CPE 2.2 URI
wfn
CPE Well-Formed Name

Macros§

uri
Helper macro to create a Uri from literal values.
wfn
Helper macro to create a Wfn from literal values.