Expand description
Pack manifests and deterministic .tuffpack artifacts.
Structs§
- Loaded
Pack - A validated source pack rooted at its canonical filesystem directory.
- Loaded
Pack Member - A validated pack member and its loaded capability manifest.
- Pack
Artifact - A fully parsed and verified pack artifact.
- Pack
Artifact Capability - Identity and release metadata for one artifact member.
- Pack
Artifact Content - An artifact-relative path paired with its file bytes.
- Pack
Artifact File - Hash and byte length for one stored artifact file.
- Pack
Artifact Metadata - Canonical metadata stored at the beginning of a pack artifact.
- Pack
Artifact Target - Pre-rendered adapter metadata stored in an artifact.
- Pack
Artifact Target Capability - Lifecycle metadata for one capability rendered to one target.
- Pack
Author - Who publishes a pack.
- Pack
Build - Adapter targets rendered while building a pack.
- Pack
Import - The origin of a pack imported from another bundle format.
- Pack
Manifest - Declarative source definition for a versioned capability pack.
- Pack
Member - A local manifest-backed capability included in a pack.
- Pack
Unsupported - One part of an imported source that the pack does not carry. Its files,
when it has any, are kept under the pack’s
extra/folder. - Project
Pack Selection - Capability IDs selected from the current project’s
tuff.lock.
Enums§
- Pack
Target Kind - What a pack artifact target renders.
Constants§
- ARTIFACT_
MANIFEST_ PATH - Where a version 2 artifact stores the pack’s manifest as written.
- OLDEST_
READABLE_ PACK_ ARTIFACT_ VERSION - Oldest artifact format this Tuff release reads.
- PACK_
ARTIFACT_ VERSION - Binary artifact format this Tuff release writes. Version 2 (RFC-110 D8)
adds the optional manifest fields, host tables, the raw
pack/tuff-pack.toml, and each target’s kind. Version 1 is still read. - PACK_
MANIFEST_ FILE - Canonical source-pack manifest filename.
- PACK_
SCHEMA_ VERSION - Source-manifest schema understood by this Tuff release.
Functions§
- extract_
prefix - Extracts files below an artifact prefix into a missing or empty directory.
- load_
manifest - Loads and validates only the source-pack manifest and returns its canonical root.
- load_
pack - Loads and validates a source pack from a directory or
tuff-pack.tomlpath. - manifest_
bytes - The pack’s
tuff-pack.tomlas written, forARTIFACT_MANIFEST_PATH. Host tables are kept byte for byte this way. - read_
artifact - Reads and verifies a complete pack artifact.
- read_
artifact_ bytes - Parses and verifies a complete pack artifact already loaded in memory.
- source_
contents - Collects the canonical manifest and declared source files for every pack member.
- validate_
relative_ path - Normalizes a non-empty relative path and rejects traversal or platform prefixes.
- write_
artifact - Writes a deterministic pack artifact and returns its hexadecimal SHA-256 digest.
- write_
manifest - Writes a source pack manifest as deterministic TOML.