euv-cli 0.3.1

The official CLI tool for the euv UI framework, providing a development server with hot reload and wasm-pack integration.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::*;

/// Represents the type of reload event sent to connected clients.
///
/// Used as the message type in the broadcast channel so that the
/// frontend can distinguish between a successful rebuild and an error.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "type", content = "message")]
pub enum ReloadEvent {
    /// A successful WASM rebuild; the client should reload the page.
    Reload,
    /// A rebuild error occurred; the message field contains details.
    Error(String),
}