nitron-macros 0.1.1

Create native UIs in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use proc_macro::TokenStream;

use crate::{view::parse_view, widget::parse_widget};

mod view;
mod widget;

#[proc_macro]
pub fn view(input: TokenStream) -> TokenStream {
    parse_view(input.into()).into()
}

#[proc_macro_attribute]
pub fn widget(_attr: TokenStream, input: TokenStream) -> TokenStream {
    parse_widget(input.into()).into()
}

// And he has filled him with the Spirit of God, with skill, with intelligence, with knowledge, and with all craftsmanship. - Exodus 35:31