mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-27 03:49:03 +02:00
move rustls and nativetls acceptor services to actix-tls
This commit is contained in:
@ -13,7 +13,7 @@ edition = "2018"
|
||||
workspace = ".."
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["openssl", "rustls"]
|
||||
features = ["openssl", "rustls", "nativetls"]
|
||||
|
||||
[lib]
|
||||
name = "actix_tls"
|
||||
@ -28,6 +28,9 @@ openssl = ["open-ssl", "tokio-openssl"]
|
||||
# rustls
|
||||
rustls = ["rust-tls", "webpki"]
|
||||
|
||||
# nativetls
|
||||
nativetls = ["native-tls", "tokio-tls"]
|
||||
|
||||
[dependencies]
|
||||
actix-service = "1.0.0-alpha.3"
|
||||
actix-codec = "0.2.0-alpha.3"
|
||||
@ -48,6 +51,10 @@ webpki = { version = "0.21", optional = true }
|
||||
webpki-roots = { version = "0.17", optional = true }
|
||||
tokio-rustls = { version = "0.12.0", optional = true }
|
||||
|
||||
# native-tls
|
||||
native-tls = { version="0.2", optional = true }
|
||||
tokio-tls = { version="0.3", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
bytes = "0.5"
|
||||
actix-testing = { version="1.0.0-alpha.3" }
|
||||
|
Reference in New Issue
Block a user