From: Ian Jackson Date: Sat, 24 Jul 2021 09:54:13 +0000 (+0100) Subject: config, wip before break out var section list X-Git-Tag: hippotat/1.0.0~498 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=f888ef049fd71706f29f26ed621a9ff3563c7109;p=hippotat.git config, wip before break out var section list Signed-off-by: Ian Jackson --- diff --git a/macros/macros.rs b/macros/macros.rs index 7ef226b..0bcfc33 100644 --- a/macros/macros.rs +++ b/macros/macros.rs @@ -8,7 +8,7 @@ use proc_macro2::Literal; use itertools::Itertools; -#[proc_macro_derive(ResolveConfig)] +#[proc_macro_derive(ResolveConfig, attributes(is, via))] pub fn resolve(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let input = parse_macro_input!(input as DeriveInput); diff --git a/src/config.rs b/src/config.rs index 8fb526d..8ad04e8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -148,7 +148,7 @@ impl Aggregate { let loc = Arc::new(path.to_owned()); for (sn, vars) in map { - dbg!( InstanceConfig::FIELDS ); + dbg!( InstanceConfig::FIELDS );// check xxx vars are in fields let sn = sn.parse().dcontext(&sn)?; self.sections.entry(sn)