Expand description
§Minimal cargo-vet client
This is a library that downloads and parses Rust crate reviews in the cargo-vet format. It can be used to build custom tools for auditing supply-chain security, reusing reviews from the cargo-vet registry, or indirectly from cargo-crev or Debian or Guix.
Structs§
- Audit
- A record of a review. If
violationis not set, it’s an approval, but check thecriteriato know what has been approved. - Audit
Source - A fetched and parsed list of reviews
- Audit
Sources - A list of audits from
fetch_registry_from_url - Audits
File - A file containing criteria and audits
- Audits
Url - Registry entry for data sources
- Crate
Name - Case-insensitive string
- Criterion
safe-to-runandsafe-to-deployare two special ones, meaning “no malware” and “no dangerous bugs”, respectively.- MiniVet
- Start here
- Registry
- A list of URLs to fetch. See the default registry for the sources: https://raw.githubusercontent.com/bholley/cargo-vet/main/registry.toml.
- Review
- A reference to an
Audit. - Trusted
- Approval of everything by a user, without checking
- VetVersion
Ref - cargo-vet allows specifying git revisions for versions, but presence of the revision seems to imply that the crate is not available on crates.io
- Wildcard
Audit - Approved without checking
Enums§
- Audit
Kind - Audits can either trust source code, or whole crates, or authors
- Error
- StrOr
Num - Unfortunately, cargo-vet sometimes exposes internal IDs of crates.io users