Expand description
Wire types for the toolchain lockfile (zlayer-toolchains.lock).
These are pure serde shapes. The file’s load/save/lookup/upsert I/O (TOML
on disk, deterministic ordering, sha256 recomputation) lives in
zlayer-toolchain’s lockfile module — this crate only defines the shapes so
both zlayer-toolchain (which consumes a lock during provisioning) and
zlayer-builder (which will pass one through in a later commit) can name
them without pulling in tokio/reqwest.
A lock pins one resolved (tool, platform, arch) to an exact version,
download url, and sha256, so a later provision is reproducible and
integrity-checked rather than resolving “latest” afresh.
Structs§
- Locked
Tool - One pinned toolchain entry: an exact, integrity-checked resolution.
- Toolchain
Lockfile - The parsed toolchain lockfile: a schema tag, a generation timestamp, and the
set of pinned tools (serialized as a TOML
[[tool]]array of tables).
Constants§
- TOOLCHAIN_
LOCK_ SCHEMA - Current on-disk schema version for
ToolchainLockfile.