diff --git a/macro/Cargo.toml b/macro/Cargo.toml index aa743bd..0c8cdc0 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" proc-macro = true [dependencies] -syn = { version = "1.0", features = ["extra-traits"] } +syn = "1.0" quote = "1.0" proc-macro2 = "1.0" heck = "0.3.2" diff --git a/macro/src/ir.rs b/macro/src/ir.rs index 3779424..e6ee088 100644 --- a/macro/src/ir.rs +++ b/macro/src/ir.rs @@ -6,7 +6,6 @@ use crate::util::{is_option, unwrap_option}; /// The parsed input to the `gen_config` macro. -#[derive(Debug)] pub(crate) struct Input { pub(crate) doc: Vec, pub(crate) visibility: syn::Visibility, @@ -14,7 +13,6 @@ pub(crate) struct Input { pub(crate) fields: Vec, } -#[derive(Debug)] pub(crate) struct Field { pub(crate) doc: Vec, pub(crate) name: syn::Ident, @@ -26,7 +24,6 @@ pub(crate) struct Field { // - example } -#[derive(Debug)] pub(crate) enum FieldKind { Leaf { env: Option, @@ -39,7 +36,6 @@ pub(crate) enum FieldKind { }, } -#[derive(Debug)] pub(crate) enum LeafKind { /// A non-optional leaf. `ty` is not `Option<_>`. Required { @@ -61,7 +57,6 @@ impl LeafKind { /// The kinds of expressions (just literals) we allow for default or example /// values. -#[derive(Debug)] pub(crate) enum Expr { Str(syn::LitStr), Int(syn::LitInt),