Skip to main content

SCHEMA_VERSION

Constant SCHEMA_VERSION 

Source
pub const SCHEMA_VERSION: u32 = 9;
Expand description

On-disk format version. Bump when CachedChunk or the header layout changes in a backwards-incompatible way. v5: ModuleArtifact gained public_type_names (pub type exports). v6: payload encoding replaced with postcard. v7: exported type schemas moved from eager JSON strings to an initializer chunk that resolves imported aliases in the module environment. v7: ModuleArtifact replaced split name sets with the typed public export contract shared by the module graph and runtime. v8: entry-chunk payload carries a ContextManifest so a warm lookup can prove the import graph is unchanged with stats instead of re-walking it. v9: the manifest records the entry it was walked from, so it cannot vouch for a different entry that happens to have identical source bytes (#5591); the header carries CODEGEN_FINGERPRINT, which the manifest fast path needs in order to reject a chunk built by another compiler at the same version (#5610); and manifest entries carry a content digest, and the manifest a capture time, so a rewrite inside the filesystem’s timestamp granularity cannot present itself as unchanged (#5582).