euv-cli 0.5.5

The official CLI tool for the euv UI framework, providing dev/release profiles with run/build modes, hot reload, and wasm-pack integration.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::*;

/// Result of formatting a single file.
///
/// Indicates whether the file was already formatted or needed changes,
/// and provides the formatted output when applicable.
#[derive(Data, New)]
pub struct FmtResult {
    /// Whether the file content was changed by formatting.
    #[get(type(copy))]
    pub changed: bool,
    /// The formatted file content (identical to input if `changed` is false).
    pub output: String,
}