euv-cli 0.50.0

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

/// Classification of live hot-reload events broadcast over SSE (`/__euv_hmr`).
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum HmrEventKind {
    /// Static docs or Web bundle rebuilt; browser clients should hot-reload.
    Reload,
    /// Dynamic WASM OTA binary updated; native and web clients may fetch v1 OTA releases.
    OtaUpdate,
    /// Incremental rebuild reported a compilation or Markdown error.
    BuildError,
}

/// Outcome returned by the zero-flicker build-before-swap native rebuild controller.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum SwapOutcome {
    /// Initial native process was launched.
    LaunchedInitial,
    /// Updated binary compiled cleanly; previous process stopped and new process started.
    Swapped,
    /// Compilation failed; the previous running app window was kept alive without flicker.
    KeptRunningOnError(String),
}