bizerror-impl 0.1.2

Implementation details for bizerror derive macro
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod expand;

use proc_macro::TokenStream;
use syn::{
    DeriveInput,
    parse_macro_input,
};

#[proc_macro_derive(BizError, attributes(bizcode, bizconfig))]
pub fn derive_error(input: TokenStream) -> TokenStream {
    let input = parse_macro_input!(input as DeriveInput);
    expand::derive(&input).into()
}