katra_cache/lib.rs
1//! katra-cache — the layered persistent cache (Katra3D §18).
2//!
3//! Layers: `1 = DXIL identity`, `2 = translated semantic IR`,
4//! `3 = SPIR-V`, `4 = pipeline descriptor → driver pipeline cache`.
5//!
6//! A driver update invalidates layer 4 without destroying reusable
7//! higher-level artifacts (layers 1–3). Identity is content-addressed;
8//! writes are atomic (temp + rename); the index tolerates corruption.
9
10#![forbid(unsafe_code)]
11#![warn(missing_docs)]
12
13pub mod store;
14
15pub use store::{CacheEntry, CacheKey, CacheMetrics, CacheStore};