diff --git a/src/config.rs b/src/config.rs index 3ec53a2..3e02b78 100644 --- a/src/config.rs +++ b/src/config.rs @@ -15,8 +15,11 @@ pub struct Target { #[derive(Debug, Deserialize)] pub struct Config { + #[cfg(feature = "consul")] pub consul: Option, + #[cfg(feature = "consul")] pub consul_http_addr: Option, + #[cfg(feature = "consul")] pub consul_http_token: Option, mappings: Vec, }