diff --git a/Cargo.toml b/Cargo.toml index 0142bc9..daef9ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ license = "ISC" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] default = ["consul"] -consul = [] +consul = ["reqwest"] [dependencies] tokio = { version = "1", features = ["full"] } @@ -20,10 +20,10 @@ log = "0.4" fern = "0.6" chrono = "0.4" async-trait = "0.1" -reqwest = { version = "0.11", features = [ - "json", - "rustls", - "hyper-tls", +reqwest = { version = "0.11", optional = true, features = [ + "json", + "rustls", + "hyper-tls", ], default-features = false } [profile.release]