euv-core 0.48.2

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
use super::*;

#[cfg(not(target_arch = "wasm32"))]
pub(crate) static CACHED_HARDWARE_PROBE: OnceLock<(SystemFontInfo, GpuAdapterInfo)> =
    OnceLock::new();

#[cfg(target_arch = "wasm32")]
thread_local! {
    pub(crate) static CACHED_HARDWARE_PROBE: RefCell<Option<(SystemFontInfo, GpuAdapterInfo)>> = const { RefCell::new(None) };
}