Make dependencies feature dependant
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
Fabian Stamm 2024-11-09 21:38:53 +01:00
parent f2ad24655c
commit d57d0c2db9

View File

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