1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
extern crate proc_macro;
use proc_macro::{TokenStream};

mod derive_bin;
use crate::derive_bin::*;

mod derive_ron;
use crate::derive_ron::*;

mod derive_json;
use crate::derive_json::*;

#[proc_macro_derive(SerBin)]
pub fn derive_ser_bin(input: TokenStream) -> TokenStream {
    derive_ser_bin_impl(input)
}

#[proc_macro_derive(DeBin)]
pub fn derive_de_bin(input: TokenStream) -> TokenStream {
    derive_de_bin_impl(input)
}

#[proc_macro_derive(SerJson)]
pub fn derive_ser_json(input: TokenStream) -> TokenStream {
    derive_ser_json_impl(input)
}

#[proc_macro_derive(DeJson)]
pub fn derive_de_json(input: TokenStream) -> TokenStream {
    derive_de_json_impl(input)
}


#[proc_macro_derive(SerRon)]
pub fn derive_ser_ron(input: TokenStream) -> TokenStream {
    derive_ser_ron_impl(input)
}

#[proc_macro_derive(DeRon)]
pub fn derive_de_ron(input: TokenStream) -> TokenStream {
    derive_de_ron_impl(input)
}