summaryrefslogtreecommitdiffstats
path: root/third_party/rust/darling_core/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/darling_core/src/lib.rs')
-rw-r--r--third_party/rust/darling_core/src/lib.rs42
1 files changed, 42 insertions, 0 deletions
diff --git a/third_party/rust/darling_core/src/lib.rs b/third_party/rust/darling_core/src/lib.rs
new file mode 100644
index 0000000000..bf2050c646
--- /dev/null
+++ b/third_party/rust/darling_core/src/lib.rs
@@ -0,0 +1,42 @@
+#![recursion_limit = "256"]
+#![cfg_attr(feature = "diagnostics", feature(proc_macro_diagnostic))]
+
+#[cfg(feature = "diagnostics")]
+extern crate proc_macro;
+
+#[macro_use]
+mod macros_private;
+#[macro_use]
+mod macros_public;
+
+pub mod ast;
+pub(crate) mod codegen;
+pub mod derive;
+pub mod error;
+mod from_attributes;
+mod from_derive_input;
+mod from_field;
+mod from_generic_param;
+mod from_generics;
+mod from_meta;
+mod from_type_param;
+mod from_variant;
+pub(crate) mod options;
+pub mod usage;
+pub mod util;
+
+pub use self::error::{Error, Result};
+pub use self::from_attributes::FromAttributes;
+pub use self::from_derive_input::FromDeriveInput;
+pub use self::from_field::FromField;
+pub use self::from_generic_param::FromGenericParam;
+pub use self::from_generics::FromGenerics;
+pub use self::from_meta::FromMeta;
+pub use self::from_type_param::FromTypeParam;
+pub use self::from_variant::FromVariant;
+
+// Re-exports
+#[doc(hidden)]
+pub use quote::ToTokens;
+#[doc(hidden)]
+pub use syn;