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
/// Environment variable naming an optional JSON output file for captured panic forensics records.
pub const ENV_EUV_PANIC_REPORT_PATH: &str = "EUV_PANIC_REPORT_PATH";
/// Maximum number of recent panic forensics records retained in the global ring.
pub const PANIC_FORENSICS_RING_CAPACITY: usize = 32;
/// Structured stderr marker prefix emitted on every captured panic for deterministic AI parsing.
pub const PANIC_FORENSICS_STDERR_PREFIX: &str = "[EUV_PANIC_FORENSICS_JSON]";
/// Fixed capacity of the zero-allocation runtime event breadcrumb ring buffer.
pub const PANIC_BREADCRUMB_RING_CAPACITY: usize = 64;

pub(crate) const PANIC_UNKNOWN_FILE: &str = "<unknown>";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const PANIC_UNNAMED_THREAD: &str = "unnamed";
#[cfg(target_arch = "wasm32")]
pub(crate) const PANIC_WASM_THREAD_NAME: &str = "wasm-main";
#[cfg(target_arch = "wasm32")]
pub(crate) const PANIC_WASM_TIMESTAMP: &str = "wasm32-runtime";
#[cfg(target_arch = "wasm32")]
pub(crate) const PANIC_JS_STACK_KEY: &str = "stack";
#[cfg(target_arch = "wasm32")]
pub(crate) const PANIC_WASM_WINDOW_PROP: &str = "__euvLastPanicForensics";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const PANIC_TERMINAL_RESTORE_SEQ: &str =
    "\x1b[?25h\x1b[?1000l\x1b[?1006l\x1b[?2004l\x1b[?1049l\x1b[0m\r\n";
pub(crate) const PANIC_FALLBACK_PAYLOAD: &str = "non-string panic payload";
crate::euv_devtools_only_items! {
    pub(crate) const PANIC_MAX_KIND_BYTES: usize = 32;
    pub(crate) const PANIC_MAX_ROUTE_BYTES: usize = 96;
    pub(crate) const PANIC_MAX_THEME_BYTES: usize = 48;
    pub(crate) const PANIC_MAX_DETAIL_BYTES: usize = 96;
    pub(crate) const PANIC_MAX_OVERLAYS_BYTES: usize = 128;
    pub(crate) const PANIC_DEFAULT_ROUTE: &str = "/";
    pub(crate) const PANIC_DEFAULT_THEME: &str = "default";
    pub(crate) const PANIC_OVERLAY_SEPARATOR: &str = ",";
    pub(crate) const PANIC_BREADCRUMB_KIND_IDLE: &str = "idle";
    pub(crate) const PANIC_BREADCRUMB_KIND_EVENT: &str = "ui_event";
    pub(crate) const PANIC_BREADCRUMB_KIND_ROUTE: &str = "route";
    pub(crate) const PANIC_BREADCRUMB_KIND_OVERLAY: &str = "overlay";
    pub(crate) const PANIC_EVENT_KEY_UP: &str = "key_up";
    pub(crate) const PANIC_EVENT_RESIZE: &str = "resized";
    pub(crate) const PANIC_EVENT_SCROLL: &str = "scroll";
    pub(crate) const PANIC_EVENT_FOCUSED: &str = "focused";
    pub(crate) const PANIC_EVENT_KEY_DOWN: &str = "key_down";
    pub(crate) const PANIC_EVENT_IME_EVENT: &str = "ime";
    pub(crate) const PANIC_EVENT_DEEP_LINK: &str = "deep_link";
    pub(crate) const PANIC_EVENT_LIFECYCLE: &str = "lifecycle";
    pub(crate) const PANIC_EVENT_SAFE_AREA: &str = "safe_area";
    pub(crate) const PANIC_EVENT_POINTER_UP: &str = "pointer_up";
    pub(crate) const PANIC_EVENT_TEXT_INPUT: &str = "text_input";
    pub(crate) const PANIC_EVENT_SYSTEM_EVT: &str = "system_event";
    pub(crate) const PANIC_EVENT_POINTER_DOWN: &str = "pointer_down";
    pub(crate) const PANIC_EVENT_POINTER_MOVE: &str = "pointer_move";
    pub(crate) const PANIC_EVENT_THEME_CHANGE: &str = "theme_changed";
    pub(crate) const PANIC_EVENT_CLOSE_REQUEST: &str = "close_requested";
    pub(crate) const PANIC_EVENT_POINTER_CANCEL: &str = "pointer_cancel";
    pub(crate) const PANIC_EVENT_REDRAW_REQUEST: &str = "redraw_requested";
    pub(crate) const PANIC_IDLE_ENTERED_DETAIL: &str = "entered_idle";
    pub(crate) const PANIC_IDLE_RESUMED_DETAIL: &str = "resumed_active";
}