serde_intermediate_derive/
lib.rs

1extern crate proc_macro;
2
3mod reflect;
4mod schema;
5
6use proc_macro::TokenStream;
7
8#[proc_macro_derive(ReflectIntermediate, attributes(reflect_intermediate))]
9pub fn derive_reflect_intermediate(input: TokenStream) -> TokenStream {
10    crate::reflect::derive_intermediate(input)
11}
12
13#[proc_macro_derive(SchemaIntermediate, attributes(schema_intermediate))]
14pub fn derive_schema_intermediate(input: TokenStream) -> TokenStream {
15    crate::schema::derive_intermediate(input)
16}