Skip to main content

Module cache

Module cache 

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

MachineCacheEnvelopeV1
Parsed typed machine cache envelope.
MachineCachePaths
Resolved paths for a source file and its generated machine sidecars.
MachineCacheReceipt
Summary of a typed machine cache write.
MachineCacheSchema
Schema identity expected by a typed .machine cache reader.
MachineCacheSource
Fingerprint for the authoritative source file behind a machine cache.
MachineCacheWriteOptions
Write options for a typed .machine cache.

Enums§

MachineCacheCodec
Compression codec used by a typed .machine cache.
MachineCacheError
Error returned by typed machine cache helpers.
MachineCacheKind
Broad kind of typed cache stored in a .machine sidecar.
MachineCacheMiss
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 T and write it as a typed machine cache.
paths_for_project_cache
Resolve deterministic .machine and 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 T and write it as a typed machine cache.
write_typed_machine_cache
Write a typed RKYV payload to a validated machine cache sidecar.