euv-core 0.57.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Executes `$body` strictly when the `devtools` Cargo feature is enabled, compiling to `{}` with zero instructions in default production builds.
#[macro_export]
macro_rules! euv_devtools_only {
    ($($body:tt)*) => {{
        #[cfg(feature = "devtools")]
        {
            $($body)*
        }
    }};
}

/// Emits every item strictly when the `devtools` Cargo feature is enabled, compiling to zero tokens and zero bytes in default production builds.
#[macro_export]
macro_rules! euv_devtools_only_items {
    ($($item:item)*) => {
        $(
            #[cfg(feature = "devtools")]
            $item
        )*
    };
}

/// Executes `$body` strictly when the `devtools` Cargo feature is disabled (default production builds), compiling to `{}` under `devtools`.
#[macro_export]
macro_rules! euv_prod_only {
    ($($body:tt)*) => {{
        #[cfg(not(feature = "devtools"))]
        {
            $($body)*
        }
    }};
}

/// Emits every item strictly when the `devtools` Cargo feature is disabled (default production builds), compiling to zero tokens under `devtools`.
#[macro_export]
macro_rules! euv_prod_only_items {
    ($($item:item)*) => {
        $(
            #[cfg(not(feature = "devtools"))]
            $item
        )*
    };
}

/// Evaluates `$devtools` strictly when the `devtools` Cargo feature is enabled and `$prod` in default production builds.
#[macro_export]
macro_rules! euv_devtools_or_prod {
    (devtools => $devtools:expr, prod => $prod:expr $(,)?) => {{
        #[cfg(feature = "devtools")]
        {
            $devtools
        }
        #[cfg(not(feature = "devtools"))]
        {
            $prod
        }
    }};
}