1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![crate_type = "proc-macro"]
#![recursion_limit = "256"]
#![doc(html_root_url = "https://docs.rs/auto_enums_core/0.3.6")]
extern crate proc_macro;
extern crate proc_macro2;
extern crate quote;
extern crate rand;
extern crate smallvec;
extern crate syn;
#[macro_use]
mod utils;
mod attribute;
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn auto_enum(args: TokenStream, input: TokenStream) -> TokenStream {
crate::attribute::attribute(args, input)
}