euv-macros 0.52.1

Zero-overhead procedural macros for the cross-platform euv UI framework, providing view!, style!, var!, watch!, computed!, state!, #[store], #[component], #[event], emit!, on!, and #[euv].
Documentation
/// Render backend selection parsed from `#[euv(render = ...)]`.
#[derive(Clone, Copy)]
pub(crate) enum EntryRenderMode {
    /// Automatic backend selection (`RenderConfig::default()`).
    Auto,
    /// Deterministic CPU software renderer (`RenderConfig::software()`).
    Software,
    /// Hardware GPU renderer (`RenderConfig::hardware()`).
    Hardware,
    /// Hybrid GPU/CPU renderer (`RenderConfig::hybrid()`).
    Hybrid,
}

/// Classified return signature of a function annotated with `#[euv]`.
#[derive(Clone, Copy)]
pub(crate) enum EntryReturnKind {
    /// Returns `()` — custom entry body executed directly across all platform hooks.
    Unit,
    /// Returns `Result<App, ...>` — custom `App` builder stepped by generated platform hooks.
    AppResult,
    /// Returns `NodeId` — declarative root view automatically mounted into a configured `App`.
    NodeId,
}