sourcegen 0.3.0

This crate contains a procedural macro to work together with "sourcegen-cli" crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}

#[proc_macro_attribute]
pub fn generated(
    _attrs: proc_macro::TokenStream,
    item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
    item
}