diff --git a/tonic/Cargo.toml b/tonic/Cargo.toml index 70932dfad..8063764e7 100644 --- a/tonic/Cargo.toml +++ b/tonic/Cargo.toml @@ -27,7 +27,7 @@ codegen = ["dep:async-trait"] gzip = ["dep:flate2"] default = ["transport", "codegen", "prost"] prost = ["dep:prost"] -tls = ["dep:rustls-pemfile", "transport", "dep:tokio-rustls", "tokio/rt", "tokio/macros"] +tls = ["dep:rustls-pemfile", "transport", "dep:tokio-rustls", "dep:rustls", "tokio/rt", "tokio/macros"] tls-roots = ["tls-roots-common", "dep:rustls-native-certs"] tls-roots-common = ["tls"] tls-webpki-roots = ["tls-roots-common", "dep:webpki-roots"] @@ -80,6 +80,7 @@ async-stream = { version = "0.3", optional = true } rustls-pemfile = { version = "1.0", optional = true } rustls-native-certs = { version = "0.6.3", optional = true } tokio-rustls = { version = "0.24.1", optional = true } +rustls = { version = "0.21.7", optional = true } webpki-roots = { version = "0.25.0", optional = true } # compression