euv-core 0.47.1

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Default resident memory budget for `TextShapingCache` (4 MiB) before LRU eviction activates.
pub const TEXT_SHAPING_DEFAULT_BUDGET_BYTES: usize = 4 * 1024 * 1024;

/// Minimum configurable resident memory budget for `TextShapingCache` (4 KiB).
pub const TEXT_SHAPING_MIN_BUDGET_BYTES: usize = 4 * 1024;

/// Fixed per-entry metadata overhead counted toward `TextShapingCache::resident_bytes`.
pub(crate) const TEXT_SHAPING_ENTRY_OVERHEAD_BYTES: usize = 96;

/// Primary 64-bit FNV-1a offset basis for shaping key hashing.
pub(crate) const SHAPING_FNV_OFFSET_A: u64 = 0xcbf2_9ce4_8422_2325;

/// Secondary 64-bit hash seed for 128-bit collision-resistant shaping keys.
pub(crate) const SHAPING_FNV_OFFSET_B: u64 = 0x8422_2325_cbf2_9ce4;

/// 64-bit FNV-1a prime multiplier.
pub(crate) const SHAPING_FNV_PRIME: u64 = 0x0000_0100_0000_01b3;

/// 64-bit FxHash multiplicative avalanche constant for single-probe table lookups.
pub(crate) const SHAPING_FX_MULT: u64 = 0x517C_C1B7_2722_0A95;

/// Empty-slot sentinel inside open-addressed shaping index tables (bit 63 set).
pub(crate) const SHAPING_INDEX_EMPTY: u64 = u64::MAX;

/// Tombstone sentinel marking an evicted slot reusable on subsequent inserts (bit 63 set).
pub(crate) const SHAPING_INDEX_TOMBSTONE: u64 = u64::MAX - 1;

/// Sentinel LRU handle indicating the head/tail boundary of the intrusive O(1) LRU list.
pub(crate) const SHAPING_NODE_NONE: u32 = u32::MAX;

/// High-bit tag distinguishing line-break LRU handles from shaping-run LRU handles.
pub(crate) const SHAPING_LRU_LINE_BREAK_BIT: u32 = 1 << 31;

/// Mask extracting the 31-bit arena slot index from a tagged LRU handle.
pub(crate) const SHAPING_LRU_INDEX_MASK: u32 = 0x7FFF_FFFF;

/// Initial power-of-two capacity for each open-addressed index table allocated lazily on first miss.
pub(crate) const SHAPING_INDEX_INIT_CAP: usize = 64;