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

/// Does nothing (returns item as-is). Needed to remove the attribute that is handled by source generator.
#[proc_macro_attribute]
pub fn sourcegen(
    _attrs: proc_macro::TokenStream,
    item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
    item
}