2019-12-02 06:30:27 +01:00
|
|
|
[package]
|
|
|
|
name = "actix-tls"
|
2024-05-18 19:14:26 +02:00
|
|
|
version = "3.4.0"
|
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"]
|
2023-08-26 15:59:51 +02:00
|
|
|
license.workspace = true
|
2023-07-17 04:05:39 +02:00
|
|
|
edition.workspace = true
|
|
|
|
rust-version.workspace = true
|
2019-12-02 06:30:27 +01:00
|
|
|
|
|
|
|
[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
|
|
|
|
2023-10-30 01:07:28 +01:00
|
|
|
[package.metadata.cargo_check_external_types]
|
|
|
|
allowed_external_types = [
|
|
|
|
"actix_service::*",
|
|
|
|
"actix_utils::*",
|
|
|
|
"futures_core::*",
|
|
|
|
"tokio::*",
|
|
|
|
]
|
|
|
|
|
2023-08-29 19:40:55 +02:00
|
|
|
[package.metadata.cargo-machete]
|
|
|
|
ignored = [
|
|
|
|
"rustls_021", # specified to force version with add_trust_anchors method
|
2023-08-29 19:45:11 +02:00
|
|
|
"rustls_webpki_0101", # specified to force secure version
|
2023-08-29 19:40:55 +02:00
|
|
|
]
|
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
[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
|
2024-01-17 05:23:48 +01:00
|
|
|
openssl = ["dep:tls-openssl", "dep:tokio-openssl"]
|
2019-12-02 06:30:27 +01:00
|
|
|
|
2023-08-26 15:59:51 +02:00
|
|
|
# alias for backwards compat
|
|
|
|
rustls = ["rustls-0_20"]
|
|
|
|
|
|
|
|
# use rustls v0.20 impls
|
2023-12-06 02:39:13 +01:00
|
|
|
rustls-0_20 = ["rustls-0_20-webpki-roots"]
|
|
|
|
rustls-0_20-webpki-roots = ["tokio-rustls-023", "webpki-roots-022"]
|
2023-12-06 05:04:39 +01:00
|
|
|
rustls-0_20-native-roots = ["tokio-rustls-023", "dep:rustls-native-certs-06"]
|
2023-08-26 15:59:51 +02:00
|
|
|
|
|
|
|
# use rustls v0.21 impls
|
2023-12-06 02:39:13 +01:00
|
|
|
rustls-0_21 = ["rustls-0_21-webpki-roots"]
|
|
|
|
rustls-0_21-webpki-roots = ["tokio-rustls-024", "webpki-roots-025"]
|
2023-12-06 05:04:39 +01:00
|
|
|
rustls-0_21-native-roots = ["tokio-rustls-024", "dep:rustls-native-certs-06"]
|
|
|
|
|
|
|
|
# use rustls v0.22 impls
|
2024-02-03 17:39:21 +01:00
|
|
|
rustls-0_22 = ["dep:tokio-rustls-025", "dep:rustls-pki-types-1"]
|
|
|
|
rustls-0_22-webpki-roots = ["rustls-0_22", "dep:webpki-roots-026"]
|
|
|
|
rustls-0_22-native-roots = ["rustls-0_22", "dep:rustls-native-certs-07"]
|
2020-12-29 01:38:41 +01:00
|
|
|
|
2024-05-12 20:47:49 +02:00
|
|
|
# use rustls v0.23 impls
|
|
|
|
rustls-0_23 = ["dep:tokio-rustls-026", "dep:rustls-pki-types-1"]
|
|
|
|
rustls-0_23-webpki-roots = ["rustls-0_23", "dep:webpki-roots-026"]
|
|
|
|
rustls-0_23-native-roots = ["rustls-0_23", "dep:rustls-native-certs-07"]
|
|
|
|
|
2020-12-29 01:38:41 +01:00
|
|
|
# use native-tls impls
|
2024-01-17 05:23:48 +01:00
|
|
|
native-tls = ["dep:tokio-native-tls"]
|
2019-12-05 15:52:37 +01:00
|
|
|
|
2020-12-29 12:36:17 +01:00
|
|
|
# support http::Uri as connect address
|
2024-01-17 05:23:48 +01:00
|
|
|
uri = ["dep:http-0_2", "dep:http-1"]
|
2020-12-29 12:36:17 +01:00
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
[dependencies]
|
2023-04-01 06:18:22 +02:00
|
|
|
actix-rt = { version = "2.2", 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"
|
2023-04-01 23:24:10 +02:00
|
|
|
tokio = "1.23.1"
|
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
|
2024-01-17 05:23:48 +01:00
|
|
|
http-0_2 = { package = "http", version = "0.2.3", optional = true }
|
2023-12-06 01:18:17 +01:00
|
|
|
http-1 = { package = "http", version = "1", optional = true }
|
2021-11-30 00:53:06 +01:00
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
# openssl
|
2023-08-29 19:45:11 +02:00
|
|
|
tls-openssl = { package = "openssl", version = "0.10.55", optional = true }
|
2020-12-29 01:38:41 +01:00
|
|
|
tokio-openssl = { version = "0.6", optional = true }
|
|
|
|
|
2024-05-18 19:14:26 +02:00
|
|
|
# rustls PKI types
|
|
|
|
rustls-pki-types-1 = { package = "rustls-pki-types", version = "1", optional = true }
|
|
|
|
|
2023-08-26 15:59:51 +02:00
|
|
|
# rustls v0.20
|
|
|
|
tokio-rustls-023 = { package = "tokio-rustls", version = "0.23", optional = true }
|
|
|
|
|
|
|
|
# rustls v0.21
|
|
|
|
tokio-rustls-024 = { package = "tokio-rustls", version = "0.24", optional = true }
|
2019-12-02 06:30:27 +01:00
|
|
|
|
2023-12-06 05:04:39 +01:00
|
|
|
# rustls v0.22
|
|
|
|
tokio-rustls-025 = { package = "tokio-rustls", version = "0.25", optional = true }
|
2024-05-12 20:47:49 +02:00
|
|
|
|
|
|
|
# rustls v0.23
|
2024-05-12 23:09:59 +02:00
|
|
|
tokio-rustls-026 = { package = "tokio-rustls", version = "0.26", default-features = false, optional = true }
|
2023-12-06 05:04:39 +01:00
|
|
|
|
2024-05-18 19:14:26 +02:00
|
|
|
# webpki-roots used with rustls features
|
|
|
|
webpki-roots-022 = { package = "webpki-roots", version = "0.22", optional = true }
|
|
|
|
webpki-roots-025 = { package = "webpki-roots", version = "0.25", optional = true }
|
|
|
|
webpki-roots-026 = { package = "webpki-roots", version = "0.26", optional = true }
|
|
|
|
|
2023-12-06 05:04:39 +01:00
|
|
|
# native root certificates for rustls impls
|
|
|
|
rustls-native-certs-06 = { package = "rustls-native-certs", version = "0.6", optional = true }
|
|
|
|
rustls-native-certs-07 = { package = "rustls-native-certs", version = "0.7", optional = true }
|
2023-12-06 02:39:13 +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
|
|
|
|
2024-05-18 19:14:26 +02:00
|
|
|
[target.'cfg(any())'.dependencies]
|
|
|
|
rustls-021 = { package = "rustls", version = "0.21.6", optional = true } # force version with add_trust_anchors method
|
|
|
|
rustls-webpki-0101 = { package = "rustls-webpki", version = "0.101.4", optional = true } # force secure version
|
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
[dev-dependencies]
|
2022-10-30 21:25:10 +01:00
|
|
|
actix-codec = "0.5"
|
|
|
|
actix-rt = "2.2"
|
2022-10-21 04:15:48 +02:00
|
|
|
actix-server = "2"
|
2020-12-29 01:38:41 +01:00
|
|
|
bytes = "1"
|
2024-05-12 20:10:27 +02:00
|
|
|
pretty_env_logger = "0.5"
|
2022-12-21 21:36:26 +01:00
|
|
|
futures-util = { version = "0.3.17", default-features = false, features = ["sink"] }
|
2024-05-20 21:06:51 +02:00
|
|
|
itertools = "0.13"
|
2024-02-03 18:01:47 +01:00
|
|
|
rcgen = "0.12"
|
2023-12-06 05:04:39 +01:00
|
|
|
rustls-pemfile = "2"
|
2024-05-12 23:09:59 +02:00
|
|
|
tokio-rustls-026 = { package = "tokio-rustls", version = "0.26" }
|
2023-08-26 15:59:51 +02:00
|
|
|
trust-dns-resolver = "0.23"
|
2021-01-26 09:05:19 +01:00
|
|
|
|
|
|
|
[[example]]
|
2021-11-28 01:56:15 +01:00
|
|
|
name = "accept-rustls"
|
2024-05-12 20:47:49 +02:00
|
|
|
required-features = ["accept", "rustls-0_23"]
|