Skip to content

Commit 283974f

Browse files
authored
Make actix-codec an optional dependency (#459)
1 parent bf2aa39 commit 283974f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

actix-tls/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ accept = []
3030
connect = []
3131

3232
# use openssl impls
33-
openssl = ["tls-openssl", "tokio-openssl"]
33+
openssl = ["tls-openssl", "tokio-openssl", "actix-codec"]
3434

3535
# use rustls impls
36-
rustls = ["tokio-rustls", "webpki-roots"]
36+
rustls = ["tokio-rustls", "webpki-roots", "actix-codec"]
3737

3838
# use native-tls impls
39-
native-tls = ["tokio-native-tls"]
39+
native-tls = ["tokio-native-tls", "actix-codec"]
4040

4141
# support http::Uri as connect address
4242
uri = ["http"]
4343

4444
[dependencies]
45-
actix-codec = "0.5.0"
45+
actix-codec = { version = "0.5.0", optional = true }
4646
actix-rt = { version = "2.2.0", default-features = false }
4747
actix-service = "2.0.0"
4848
actix-utils = "3.0.0"
@@ -67,6 +67,7 @@ webpki-roots = { version = "0.22", optional = true }
6767
tokio-native-tls = { version = "0.3", optional = true }
6868

6969
[dev-dependencies]
70+
actix-codec = "0.5.0"
7071
actix-rt = "2.2.0"
7172
actix-server = "2.0.0"
7273
bytes = "1"

0 commit comments

Comments
 (0)