From 283974f3e6d487ae257c93542126dcca73ee547e Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 24 Jun 2022 01:27:36 +0900 Subject: [PATCH] Make actix-codec an optional dependency (#459) --- actix-tls/Cargo.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/actix-tls/Cargo.toml b/actix-tls/Cargo.toml index 5a8f2a6d..bbe1156c 100755 --- a/actix-tls/Cargo.toml +++ b/actix-tls/Cargo.toml @@ -30,19 +30,19 @@ accept = [] connect = [] # use openssl impls -openssl = ["tls-openssl", "tokio-openssl"] +openssl = ["tls-openssl", "tokio-openssl", "actix-codec"] # use rustls impls -rustls = ["tokio-rustls", "webpki-roots"] +rustls = ["tokio-rustls", "webpki-roots", "actix-codec"] # use native-tls impls -native-tls = ["tokio-native-tls"] +native-tls = ["tokio-native-tls", "actix-codec"] # support http::Uri as connect address uri = ["http"] [dependencies] -actix-codec = "0.5.0" +actix-codec = { version = "0.5.0", optional = true } actix-rt = { version = "2.2.0", default-features = false } actix-service = "2.0.0" actix-utils = "3.0.0" @@ -67,6 +67,7 @@ webpki-roots = { version = "0.22", optional = true } tokio-native-tls = { version = "0.3", optional = true } [dev-dependencies] +actix-codec = "0.5.0" actix-rt = "2.2.0" actix-server = "2.0.0" bytes = "1"