euv-cli 0.48.2

Cross-platform CLI tool for the euv native UI framework supporting run, build, check, fmt, doctor, new, and Hyperlane SSE dynamic updates across all supported platforms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

/// Monotonic temp-file suffix counter used by `atomic_write_synced`.
pub(crate) static ATOMIC_TMP_SEQ: AtomicU64 = AtomicU64::new(1);

/// Process-wide per-listener update server state registry isolating parallel server instances cleanly.
#[cfg(feature = "update-server")]
pub(crate) static UPDATE_SERVER_REGISTRY: OnceLock<
    RwLock<HashMap<SocketAddr, Arc<UpdateServerState>>>,
> = OnceLock::new();

/// Fallback embedder state used when external Hyperlane servers register update routes without a pre-registered address.
#[cfg(feature = "update-server")]
pub(crate) static DEFAULT_UPDATE_SERVER_STATE: OnceLock<RwLock<Option<Arc<UpdateServerState>>>> =
    OnceLock::new();