mirror of
https://github.com/OMGeeky/confique.git
synced 2026-02-23 15:38:30 +01:00
Remove Debug impls and syn's extra-trait features
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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<String>,
|
||||
pub(crate) visibility: syn::Visibility,
|
||||
@@ -14,7 +13,6 @@ pub(crate) struct Input {
|
||||
pub(crate) fields: Vec<Field>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct Field {
|
||||
pub(crate) doc: Vec<String>,
|
||||
pub(crate) name: syn::Ident,
|
||||
@@ -26,7 +24,6 @@ pub(crate) struct Field {
|
||||
// - example
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) enum FieldKind {
|
||||
Leaf {
|
||||
env: Option<String>,
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user