32 lines
778 B
Rust
32 lines
778 B
Rust
mod derive_into_element;
|
|
mod derive_render;
|
|
mod register_action;
|
|
mod style_helpers;
|
|
mod test;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro]
|
|
pub fn register_action(ident: TokenStream) -> TokenStream {
|
|
register_action::register_action_macro(ident)
|
|
}
|
|
|
|
#[proc_macro_derive(IntoElement)]
|
|
pub fn derive_into_element(input: TokenStream) -> TokenStream {
|
|
derive_into_element::derive_into_element(input)
|
|
}
|
|
|
|
#[proc_macro_derive(Render)]
|
|
pub fn derive_render(input: TokenStream) -> TokenStream {
|
|
derive_render::derive_render(input)
|
|
}
|
|
|
|
#[proc_macro]
|
|
pub fn style_helpers(input: TokenStream) -> TokenStream {
|
|
style_helpers::style_helpers(input)
|
|
}
|
|
|
|
#[proc_macro_attribute]
|
|
pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
|
test::test(args, function)
|
|
}
|