zng_ext_hot_reload_proc_macros/
lib.rs

1#![doc(html_favicon_url = "https://raw.githubusercontent.com/zng-ui/zng/main/examples/image/res/zng-logo-icon.png")]
2#![doc(html_logo_url = "https://raw.githubusercontent.com/zng-ui/zng/main/examples/image/res/zng-logo.png")]
3//!
4//! Proc-macros for `zng-ext-hot-reload`.
5//!
6//! # Crate
7//!
8#![doc = include_str!(concat!("../", std::env!("CARGO_PKG_README")))]
9#![warn(unused_extern_crates)]
10#![warn(missing_docs)]
11
12use proc_macro::TokenStream;
13
14#[macro_use]
15mod util;
16
17mod hot_node;
18
19/// Expands an impl into a `UiNode` impl.
20///
21/// # Full Documentation
22///
23/// Read the documentation in the `zng::hot_reload::hot_node` page.
24#[proc_macro_attribute]
25pub fn hot_node(args: TokenStream, input: TokenStream) -> TokenStream {
26    hot_node::expand(args, input)
27}