From 01bc71ab863101cb31c9d9652320dc7e4d0f56cc Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 9 Nov 2024 21:48:22 +0100 Subject: [PATCH] Hide consul config behind a flag --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) 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, }