From d57d0c2db9871d9abd4f4d9b10fee1541be9df31 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 9 Nov 2024 21:38:53 +0100 Subject: [PATCH] Make dependencies feature dependant --- Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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]