profig_macros/lib.rs
1use proc_macro::TokenStream;
2use syn::{parse_macro_input, DeriveInput};
3
4mod derive;
5
6#[proc_macro_derive(Profig, attributes(profig))]
7pub fn derive_profig(input: TokenStream) -> TokenStream {
8 let input = parse_macro_input!(input as DeriveInput);
9 derive::expand_derive_profig(input).into()
10}