Skip to main content

Crate patchsense

Crate patchsense 

Source
Expand description

PatchSense library: lockfile parsing, vulnerability data, and priority scoring.

patchsense is this library and the patchsense binary (main.rs). Modules declared here do not print to a terminal and do not use clap, comfy-table, indicatif, or rmcp.

Re-exports§

pub use error::CoreError;
pub use model::Advisory;
pub use model::Ecosystem;
pub use model::Finding;
pub use model::GoImport;
pub use model::Package;
pub use model::ParsedLockfile;
pub use model::Report;
pub use model::Severity;
pub use model::Tier;

Modules§

cache
SQLite cache for OSV advisory bodies, EPSS rows, and the CISA KEV feed.
config
patchsense.toml (PRD §7).
discovery
Find lockfiles under a directory.
enrich
EPSS, KEV, and CVSS enrichment.
error
Errors produced by the patchsense library.
go_imports
Package-level import check for Go findings.
http
HTTP access for OSV, EPSS, and KEV.
lockfile
Lockfile parsers and the registry that picks one from a file name.
model
Domain types shared by parsers, the OSV client, and the report.
osv
OSV query client.
report
Report renderers. The scan stores a crate::model::Report; these modules turn it into the documents CI and reviewers consume.
scan
Scan orchestration: find lockfiles, parse them, load OSV advisories, and optionally score them.
score
Priority score from PRD §9.

Constants§

VERSION
Crate version, shared with the patchsense binary.