pub struct CachedAirOutput {
pub interner: InternerSnapshot,
pub functions: Vec<AnalyzedFunction>,
pub type_pool: TypeInternPool,
pub strings: Vec<String>,
pub bytes: Vec<Vec<u8>>,
pub interface_defs: Vec<InterfaceDef>,
pub interface_vtables: InterfaceVtables,
pub comptime_dbg_output: Vec<String>,
}Expand description
Envelope around a per-file AIR + interner snapshot, ready for bincode serialization to the AIR cache.
Fields§
§interner: InternerSnapshotPer-file interner snapshot (same role as in CachedParseOutput).
functions: Vec<AnalyzedFunction>All analyzed functions in this file with their typed AIR.
type_pool: TypeInternPoolType intern pool snapshot. See TypeInternPool’s custom serde
impl: only the canonical types: Vec<TypeData> is captured;
the structural-dedup HashMaps reconstruct on load.
strings: Vec<String>String literals, indexed by AirInstData::StringConst index.
bytes: Vec<Vec<u8>>Byte-blob literals (@embed_file), indexed by BytesConst index.
interface_defs: Vec<InterfaceDef>Interface definitions, indexed by InterfaceId.0.
interface_vtables: InterfaceVtablesVtable witnesses keyed by (StructId, InterfaceId).
comptime_dbg_output: Vec<String>Lines of @dbg output collected during comptime evaluation.
Replayed verbatim to stderr on cache hit so the build is
observably identical to a cold build.