swc_config_macro/
lib.rs

1
2
3
4
5
6
7
8
9
10
extern crate proc_macro;

mod merge;

#[proc_macro_derive(Merge)]
pub fn derive_merge(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
    let input = syn::parse(input).expect("failed to parse input as DeriveInput");

    self::merge::expand(input).into()
}