fleetreach-core
Domain types for fleetreach: the stable, I/O-free contract every other crate maps onto.
fleetreach-core defines the model a fleet scan produces — FleetReport,
VulnFinding, Occurrence, Severity — and their serde shape. It
performs no I/O and exposes no rustsec types, so downstream
enrichment (EPSS, reachability, SARIF) lands as additive fields without
breaking schema_version: 1 consumers. semver values stay typed and
serialize to strings only at the JSON boundary.
Usage
The per-occurrence verdict — is the installed version still vulnerable? — is computed against the advisory's patched range, fail-closed:
use ;
use ;
// Severity is ordered worst-last, so `iter().max()` yields the fleet maximum.
assert!;
let occurrence = InRepo ;
assert!; // installed is below the patched range
Minimum supported Rust version
1.89. An MSRV increase is treated as a minor-version bump.
Contributing
See CONTRIBUTING.md.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.