Hide consul config behind a flag
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
Fabian Stamm 2024-11-09 21:48:22 +01:00
parent cf98c93a89
commit 01bc71ab86

View File

@ -15,8 +15,11 @@ pub struct Target {
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct Config { pub struct Config {
#[cfg(feature = "consul")]
pub consul: Option<bool>, pub consul: Option<bool>,
#[cfg(feature = "consul")]
pub consul_http_addr: Option<String>, pub consul_http_addr: Option<String>,
#[cfg(feature = "consul")]
pub consul_http_token: Option<String>, pub consul_http_token: Option<String>,
mappings: Vec<Target>, mappings: Vec<Target>,
} }