nitron_macros/lib.rs
1use proc_macro::TokenStream;
2
3use crate::{view::parse_view, widget::parse_widget};
4
5mod view;
6mod widget;
7
8#[proc_macro]
9pub fn view(input: TokenStream) -> TokenStream {
10 parse_view(input.into()).into()
11}
12
13#[proc_macro_attribute]
14pub fn widget(_attr: TokenStream, input: TokenStream) -> TokenStream {
15 parse_widget(input.into()).into()
16}
17
18// And he has filled him with the Spirit of God, with skill, with intelligence, with knowledge, and with all craftsmanship. - Exodus 35:31