20 lines
488 B
Rust
20 lines
488 B
Rust
use proc_macro::TokenStream;
|
|
|
|
mod derive_component;
|
|
mod style_helpers;
|
|
mod test;
|
|
|
|
#[proc_macro]
|
|
pub fn style_helpers(args: TokenStream) -> TokenStream {
|
|
style_helpers::style_helpers(args)
|
|
}
|
|
|
|
#[proc_macro_derive(Component, attributes(component))]
|
|
pub fn derive_component(input: TokenStream) -> TokenStream {
|
|
derive_component::derive_component(input)
|
|
}
|
|
|
|
#[proc_macro_attribute]
|
|
pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
|
test::test(args, function)
|
|
}
|