Skip to main content

Module lockfile

Module lockfile 

Source
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§

LockFileCache
Cache for parsed lock files with automatic staleness detection.
ResolvedPackage
Resolved package information from a lock file.
ResolvedPackages
Collection of resolved packages from a lock file.

Enums§

ResolvedSource
Source of a resolved dependency.

Constants§

MAX_LOCKFILE_BYTES
Maximum lock file size read_lockfile_content reads before parsing.

Traits§

LockFileProvider
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::ParseError tagged with the ecosystem’s file_type label and the file’s path.