Skip to main content

Module lockfile

Module lockfile 

Source

Structs§

LockfileModel
Package
PackageId
A fully-qualified package identity: name@version plus 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 in Cargo.lock regardless of the git/sparse fetch protocol, so it is the value seen in practice. CRATES_IO_SPARSE is accepted as well for robustness.
CRATES_IO_SPARSE
Sparse-index source string for crates.io. Not normally written to Cargo.lock (cargo uses CRATES_IO_REGISTRY), but accepted defensively.

Functions§

parse_lockfile
Parse a Cargo.lock from disk.
parse_lockfile_str
Parse a Cargo.lock from an in-memory string.