euv 0.1.1

A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and RSX macros for WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::*;

/// Global auto-incrementing ID counter for DOM elements.
///
/// Used to assign a unique `data-euv-id` attribute to each element
/// that receives an event listener, providing a stable identity across
/// re-renders.
pub static NEXT_EUV_ID: AtomicUsize = AtomicUsize::new(1);

/// Global pointer to the handler registry.
///
/// Lazily initialized on first access via `Box::leak`. Because WASM
/// is single-threaded, concurrent access is impossible and raw
/// pointer access is safe.
pub static mut HANDLER_REGISTRY: *mut HashMap<(usize, String), HandlerEntry> = null_mut();