euv-core 0.57.0

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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// Atomic idempotency guard ensuring `install_panic_forensics_hook` installs exactly once per process.
pub(crate) static PANIC_FORENSICS_INSTALLED: AtomicBool = AtomicBool::new(false);

/// Atomic flag tracking whether an interactive TUI terminal needs ANSI restore sequences before emitting panic forensics.
pub(crate) static PANIC_TERMINAL_RESTORE_ACTIVE: AtomicBool = AtomicBool::new(false);

crate::euv_devtools_only_items! {
    /// Global zero-allocation runtime context and chronological breadcrumb ring shared across threads.
    pub(crate) static PANIC_RUNTIME_CONTEXT: OnceLock<Mutex<InlineRuntimeContextState>> =
        OnceLock::new();
}

/// Global bounded ring buffer storing captured `PanicForensicsRecord` entries for live query and tests.
pub(crate) static PANIC_FORENSICS_RING: OnceLock<Mutex<VecDeque<PanicForensicsRecord>>> =
    OnceLock::new();