mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-23 21:51:06 +01:00
Make actix-codec an optional dependency (#459)
This commit is contained in:
parent
bf2aa3902c
commit
283974f3e6
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user