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)]
pub struct Config {
#[cfg(feature = "consul")]
pub consul: Option<bool>,
#[cfg(feature = "consul")]
pub consul_http_addr: Option<String>,
#[cfg(feature = "consul")]
pub consul_http_token: Option<String>,
mappings: Vec<Target>,
}