driven/fusion/mod.rs
1//! DX Fusion Mode - Pre-Compiled Template System
2//!
3//! Inspired by dx-js-bundler's fusion mode for 0.7ms template loading.
4
5mod binary_cache;
6mod hot_cache;
7mod speculative_loader;
8mod template_module;
9
10pub use binary_cache::{BinaryCache, CacheEntry, CacheKey};
11pub use hot_cache::{HotCache, TemplateCacheEntry};
12pub use speculative_loader::{PredictionEngine, SpeculativeLoader};
13pub use template_module::{FusionHeader, FusionModule, TemplateSlot};
14
15/// Fusion format magic bytes
16pub const FUSION_MAGIC: &[u8; 4] = b"DRVF";
17
18/// Fusion format version
19pub const FUSION_VERSION: u16 = 1;