diff options
author | Alex Auvolat <alex@adnab.me> | 2022-10-18 18:38:20 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-10-18 18:38:20 +0200 |
commit | 002b9fc50c5b69e0e10c84e4db5ecea1b3941fad (patch) | |
tree | 2ec382c4bf2d751a663d4e6d89c7bed9cc7de664 /src/rpc/Cargo.toml | |
parent | 5670599372f6c3c60dcd74279a0741248fc510c3 (diff) | |
download | garage-002b9fc50c5b69e0e10c84e4db5ecea1b3941fad.tar.gz garage-002b9fc50c5b69e0e10c84e4db5ecea1b3941fad.zip |
Add TLS support for Consul discovery + refactoring
Diffstat (limited to 'src/rpc/Cargo.toml')
-rw-r--r-- | src/rpc/Cargo.toml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/Cargo.toml b/src/rpc/Cargo.toml index 883929e8..aedac82b 100644 --- a/src/rpc/Cargo.toml +++ b/src/rpc/Cargo.toml @@ -29,11 +29,13 @@ rmp-serde = "0.15" serde = { version = "1.0", default-features = false, features = ["derive", "rc"] } serde_bytes = "0.11" serde_json = "1.0" +err-derive = { version = "0.3", optional = true } # newer version requires rust edition 2021 kube = { version = "0.75", default-features = false, features = ["runtime", "derive", "client", "rustls-tls"], optional = true } k8s-openapi = { version = "0.16", features = ["v1_22"], optional = true } schemars = { version = "0.8", optional = true } +reqwest = { version = "0.11", optional = true, default-features = false, features = ["rustls-tls", "json"] } # newer version requires rust edition 2021 pnet_datalink = "0.28" @@ -46,9 +48,7 @@ opentelemetry = "0.17" netapp = { version = "0.5.2", features = ["telemetry"] } -hyper = { version = "0.14", features = ["client", "http1", "runtime", "tcp"] } - - [features] kubernetes-discovery = [ "kube", "k8s-openapi", "schemars" ] +consul-discovery = [ "reqwest", "err-derive" ] system-libs = [ "sodiumoxide/use-pkg-config" ] |