tailwag_forms_macros 0.1.0

The macro exports for supporting the tailwag_forms crate.
Documentation
1
2
3
4
5
6
7
8
9
use syn::parse_macro_input;
use tailwag_forms_macro_logic as logic;

#[proc_macro_derive(GetForm, attributes(no_form))]
pub fn derive_get_form(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
    let input = parse_macro_input!(input);
    let impl_trait_tokens = logic::derive::get_form::derive_struct(&input);
    impl_trait_tokens.into()
}