(input: TokenStream)
| 38 | |
| 39 | #[proc_macro_derive(Error, attributes(backtrace, error, from, source))] |
| 40 | pub fn derive_error(input: TokenStream) -> TokenStream { |
| 41 | let input = parse_macro_input!(input as DeriveInput); |
| 42 | expand::derive(&input).into() |
| 43 | } |
| 44 | |
| 45 | #[allow(non_camel_case_types)] |
| 46 | struct private; |