1
0
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:
Nikolay Kim
2019-12-05 20:52:37 +06:00
parent 3a858feaec
commit b18fbc98d5
7 changed files with 155 additions and 203 deletions

View File

@ -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" }