darling_core/
lib.rs

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