feat: create route handler macro

This commit is contained in:
Valerio Ageno
2024-05-18 20:45:35 +02:00
parent 74968b27cc
commit d4c9b25b90
12 changed files with 149 additions and 43 deletions
+11
View File
@@ -0,0 +1,11 @@
extern crate proc_macro;
use proc_macro::TokenStream;
mod handler;
#[proc_macro_attribute]
pub fn handler(args: TokenStream, item: TokenStream) -> TokenStream {
handler::handler_core(args, item)
}