2019-12-02 06:30:27 +01:00
|
|
|
[package]
|
|
|
|
name = "actix-tls"
|
2022-03-15 20:43:47 +01:00
|
|
|
version = "3.0.4"
|
2021-11-22 14:34:15 +01:00
|
|
|
authors = [
|
|
|
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
|
|
|
"Rob Ede <robjtede@icloud.com>",
|
|
|
|
]
|
2020-12-29 01:38:41 +01:00
|
|
|
description = "TLS acceptor and connector services for Actix ecosystem"
|
|
|
|
keywords = ["network", "tls", "ssl", "async", "transport"]
|
2019-12-02 06:30:27 +01:00
|
|
|
repository = "https://github.com/actix/actix-net.git"
|
2021-12-26 22:12:19 +01:00
|
|
|
categories = ["network-programming", "asynchronous", "cryptography"]
|
2020-07-14 12:11:30 +02:00
|
|
|
license = "MIT OR Apache-2.0"
|
2019-12-02 06:30:27 +01:00
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
2021-11-30 00:53:06 +01:00
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2019-12-02 06:30:27 +01:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "actix_tls"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
[features]
|
2021-11-30 13:34:46 +01:00
|
|
|
default = ["accept", "connect"]
|
2019-12-02 06:30:27 +01:00
|
|
|
|
2020-12-29 01:38:41 +01:00
|
|
|
# enable acceptor services
|
|
|
|
accept = []
|
2019-12-02 06:30:27 +01:00
|
|
|
|
2020-12-29 01:38:41 +01:00
|
|
|
# enable connector services
|
2021-01-23 02:33:50 +01:00
|
|
|
connect = []
|
2020-12-29 01:38:41 +01:00
|
|
|
|
|
|
|
# use openssl impls
|
2022-06-23 18:27:36 +02:00
|
|
|
openssl = ["tls-openssl", "tokio-openssl", "actix-codec"]
|
2019-12-02 06:30:27 +01:00
|
|
|
|
2020-12-29 01:38:41 +01:00
|
|
|
# use rustls impls
|
2022-06-23 18:27:36 +02:00
|
|
|
rustls = ["tokio-rustls", "webpki-roots", "actix-codec"]
|
2020-12-29 01:38:41 +01:00
|
|
|
|
|
|
|
# use native-tls impls
|
2022-06-23 18:27:36 +02:00
|
|
|
native-tls = ["tokio-native-tls", "actix-codec"]
|
2019-12-05 15:52:37 +01:00
|
|
|
|
2020-12-29 12:36:17 +01:00
|
|
|
# support http::Uri as connect address
|
|
|
|
uri = ["http"]
|
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
[dependencies]
|
2022-06-23 18:27:36 +02:00
|
|
|
actix-codec = { version = "0.5.0", optional = true }
|
2021-03-29 07:57:14 +02:00
|
|
|
actix-rt = { version = "2.2.0", default-features = false }
|
2022-10-21 04:15:48 +02:00
|
|
|
actix-service = "2"
|
|
|
|
actix-utils = "3"
|
2020-09-08 19:00:07 +02:00
|
|
|
|
2021-01-23 02:33:50 +01:00
|
|
|
futures-core = { version = "0.3.7", default-features = false, features = ["alloc"] }
|
2022-10-21 04:15:48 +02:00
|
|
|
impl-more = "0.1"
|
2021-11-16 01:22:24 +01:00
|
|
|
pin-project-lite = "0.2.7"
|
2022-02-15 02:47:27 +01:00
|
|
|
tokio-util = "0.7"
|
2022-03-15 20:37:08 +01:00
|
|
|
tracing = { version = "0.1.30", default-features = false, features = ["log"] }
|
2020-12-29 12:36:17 +01:00
|
|
|
|
2021-11-30 00:53:06 +01:00
|
|
|
# uri
|
|
|
|
http = { version = "0.2.3", optional = true }
|
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
# openssl
|
2021-02-24 10:48:41 +01:00
|
|
|
tls-openssl = { package = "openssl", version = "0.10.9", optional = true }
|
2020-12-29 01:38:41 +01:00
|
|
|
tokio-openssl = { version = "0.6", optional = true }
|
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
# rustls
|
2021-10-19 17:48:23 +02:00
|
|
|
tokio-rustls = { version = "0.23", optional = true }
|
2021-10-20 18:12:11 +02:00
|
|
|
webpki-roots = { version = "0.22", optional = true }
|
2019-12-02 06:30:27 +01:00
|
|
|
|
2019-12-05 15:52:37 +01:00
|
|
|
# native-tls
|
2020-12-29 01:38:41 +01:00
|
|
|
tokio-native-tls = { version = "0.3", optional = true }
|
2019-12-05 15:52:37 +01:00
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
[dev-dependencies]
|
2022-06-23 18:27:36 +02:00
|
|
|
actix-codec = "0.5.0"
|
2021-03-29 07:57:14 +02:00
|
|
|
actix-rt = "2.2.0"
|
2022-10-21 04:15:48 +02:00
|
|
|
actix-server = "2"
|
2020-12-29 01:38:41 +01:00
|
|
|
bytes = "1"
|
2021-10-20 18:12:11 +02:00
|
|
|
env_logger = "0.9"
|
2020-12-29 12:36:17 +01:00
|
|
|
futures-util = { version = "0.3.7", default-features = false, features = ["sink"] }
|
|
|
|
log = "0.4"
|
2022-10-21 04:23:40 +02:00
|
|
|
rcgen = "0.10"
|
|
|
|
rustls-pemfile = "1"
|
2021-11-16 01:22:24 +01:00
|
|
|
tokio-rustls = { version = "0.23", features = ["dangerous_configuration"] }
|
2022-10-21 04:23:40 +02:00
|
|
|
trust-dns-resolver = "0.22"
|
2021-01-26 09:05:19 +01:00
|
|
|
|
|
|
|
[[example]]
|
2021-11-28 01:56:15 +01:00
|
|
|
name = "accept-rustls"
|
2021-01-26 09:05:19 +01:00
|
|
|
required-features = ["accept", "rustls"]
|