Expand description
Typed .machine cache helpers for JSON/config/receipt/index read models.
These helpers are intentionally separate from the DxDocument machine
conversion path. They archive caller-owned Rust types directly so hot paths
can parse source JSON once, then validate and read an immutable machine cache.
Structs§
- Machine
Cache Envelope V1 - Parsed typed machine cache envelope.
- Machine
Cache Paths - Resolved paths for a source file and its generated machine sidecars.
- Machine
Cache Receipt - Summary of a typed machine cache write.
- Machine
Cache Schema - Schema identity expected by a typed
.machinecache reader. - Machine
Cache Source - Fingerprint for the authoritative source file behind a machine cache.
- Machine
Cache Write Options - Write options for a typed
.machinecache.
Enums§
- Machine
Cache Codec - Compression codec used by a typed
.machinecache. - Machine
Cache Error - Error returned by typed machine cache helpers.
- Machine
Cache Kind - Broad kind of typed cache stored in a
.machinesidecar. - Machine
Cache Miss - Reason a typed cache could not be opened as a valid fast-path hit.
Constants§
- MACHINE_
CACHE_ HEADER_ LEN - Number of bytes in the typed machine cache header.
Functions§
- access_
typed_ machine_ cache - Validate typed cache bytes and return the archived payload.
- json_
source_ to_ typed_ machine_ cache - Parse a JSON source file into
Tand write it as a typed machine cache. - paths_
for_ project_ cache - Resolve deterministic
.machineand metadata paths for a project cache. - source_
fingerprint - Compute the authoritative source fingerprint for a cache input file.
- toml_
source_ to_ typed_ machine_ cache - Parse a TOML source file into
Tand write it as a typed machine cache. - write_
typed_ machine_ cache - Write a typed RKYV payload to a validated machine cache sidecar.