Simplify actions macro.
This commit is contained in:
parent
fdc9ea7f9b
commit
2a55b0dbfb
3 changed files with 45 additions and 25 deletions
|
@ -1,15 +1,21 @@
|
|||
use proc_macro::TokenStream;
|
||||
|
||||
mod action;
|
||||
mod derive_component;
|
||||
mod register_action;
|
||||
mod style_helpers;
|
||||
mod test;
|
||||
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
#[proc_macro]
|
||||
pub fn style_helpers(args: TokenStream) -> TokenStream {
|
||||
style_helpers::style_helpers(args)
|
||||
}
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn action(attr: TokenStream, item: TokenStream) -> TokenStream {
|
||||
action::action(attr, item)
|
||||
}
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn register_action(attr: TokenStream, item: TokenStream) -> TokenStream {
|
||||
register_action::register_action(attr, item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue