| 1 | #![ recursion_limit= "256"] | 
| 2 | #![ cfg_attr(feature = "diagnostics", feature(proc_macro_diagnostic))] | 
|---|
| 3 | #![ warn(rust_2018_idioms)] | 
|---|
| 4 |  | 
|---|
| 5 | #[ cfg(feature = "diagnostics")] | 
|---|
| 6 | extern crate proc_macro; | 
|---|
| 7 |  | 
|---|
| 8 | #[ macro_use] | 
|---|
| 9 | mod macros_private; | 
|---|
| 10 | #[ macro_use] | 
|---|
| 11 | mod macros_public; | 
|---|
| 12 |  | 
|---|
| 13 | pub mod ast; | 
|---|
| 14 | pub(crate) mod codegen; | 
|---|
| 15 | pub mod derive; | 
|---|
| 16 | pub mod error; | 
|---|
| 17 | mod from_attributes; | 
|---|
| 18 | mod from_derive_input; | 
|---|
| 19 | mod from_field; | 
|---|
| 20 | mod from_generic_param; | 
|---|
| 21 | mod from_generics; | 
|---|
| 22 | mod from_meta; | 
|---|
| 23 | mod from_type_param; | 
|---|
| 24 | mod from_variant; | 
|---|
| 25 | pub(crate) mod options; | 
|---|
| 26 | pub mod usage; | 
|---|
| 27 | pub mod util; | 
|---|
| 28 |  | 
|---|
| 29 | pub use self::error::{Error, Result}; | 
|---|
| 30 | pub use self::from_attributes::FromAttributes; | 
|---|
| 31 | pub use self::from_derive_input::FromDeriveInput; | 
|---|
| 32 | pub use self::from_field::FromField; | 
|---|
| 33 | pub use self::from_generic_param::FromGenericParam; | 
|---|
| 34 | pub use self::from_generics::FromGenerics; | 
|---|
| 35 | pub use self::from_meta::FromMeta; | 
|---|
| 36 | pub use self::from_type_param::FromTypeParam; | 
|---|
| 37 | pub use self::from_variant::FromVariant; | 
|---|
| 38 |  | 
|---|
| 39 | // Re-exports | 
|---|
| 40 | #[ doc(hidden)] | 
|---|
| 41 | pub use quote::ToTokens; | 
|---|
| 42 | #[ doc(hidden)] | 
|---|
| 43 | pub use syn; | 
|---|
| 44 |  | 
|---|