Module rustsec::osv [−][src]
Expand description
Provides support for exporting to the interchange format defined by https://github.com/google/osv
We also use OSV-style ranges for version matching in RustSec crate
because it allows handling pre-releases correctly,
which semver
crate does not allow doing directly.
See https://github.com/dtolnay/semver/issues/172
Structs
Security advisory in the format defined by https://github.com/google/osv
A range of affected versions. If any of the bounds is unspecified, that means ALL versions in that direction are affected.
Functions
Returns OSV ranges for all affected versions in the given advisory.
OSV ranges are [start, end)
intervals, and anything included in them is affected.
Panics if the ranges are malformed or range specification syntax is not supported,
since that has been validated on deserialization.