Structs§
- Lockfile
Model - Package
- Package
Id - A fully-qualified package identity:
name@versionplus its source registry.
Constants§
- CRATES_
IO_ REGISTRY - Canonical source string for packages resolved from the default crates.io
registry. Cargo normalises crates.io to this
registry+form inCargo.lockregardless of the git/sparse fetch protocol, so it is the value seen in practice.CRATES_IO_SPARSEis accepted as well for robustness. - CRATES_
IO_ SPARSE - Sparse-index source string for crates.io. Not normally written to
Cargo.lock(cargo usesCRATES_IO_REGISTRY), but accepted defensively.
Functions§
- parse_
lockfile - Parse a
Cargo.lockfrom disk. - parse_
lockfile_ str - Parse a
Cargo.lockfrom an in-memory string.