Expand description
Lock file parsing abstractions.
Provides generic types and traits for parsing lock files across different package ecosystems (Cargo.lock, package-lock.json, poetry.lock, etc.).
Lock files contain resolved dependency versions, allowing instant display without network requests to registries.
Structs§
- Lock
File Cache - Cache for parsed lock files with automatic staleness detection.
- Resolved
Package - Resolved package information from a lock file.
- Resolved
Packages - Collection of resolved packages from a lock file.
Enums§
- Resolved
Source - Source of a resolved dependency.
Constants§
- MAX_
LOCKFILE_ BYTES - Maximum lock file size
read_lockfile_contentreads before parsing.
Traits§
- Lock
File Provider - Lock file provider trait for ecosystem-specific implementations.
Functions§
- locate_
lockfile_ for_ manifest - Generic lock file locator.
- read_
lockfile_ content - Reads a lock file’s contents, wrapping any I/O failure into a
DepsError::ParseErrortagged with the ecosystem’sfile_typelabel and the file’s path.