2019-12-02 06:30:27 +01:00
|
|
|
[package]
|
|
|
|
name = "actix-tls"
|
2021-01-03 05:39:37 +01:00
|
|
|
version = "3.0.0-beta.2"
|
2019-12-02 06:30:27 +01:00
|
|
|
authors = ["Nikolay Kim <fafhrd91@gmail.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
|
|
|
homepage = "https://actix.rs"
|
|
|
|
repository = "https://github.com/actix/actix-net.git"
|
|
|
|
documentation = "https://docs.rs/actix-tls/"
|
|
|
|
categories = ["network-programming", "asynchronous"]
|
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]
|
2020-12-29 12:36:17 +01:00
|
|
|
features = ["openssl", "rustls", "native-tls", "accept", "connect", "uri"]
|
2019-12-02 06:30:27 +01:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "actix_tls"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
2020-09-13 11:12:07 +02:00
|
|
|
[[example]]
|
|
|
|
name = "basic"
|
2020-12-29 01:38:41 +01:00
|
|
|
required-features = ["accept", "rustls"]
|
2020-09-13 11:12:07 +02:00
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
[features]
|
2020-12-29 12:36:17 +01:00
|
|
|
default = ["accept", "connect", "uri"]
|
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
|
2020-12-29 12:36:17 +01:00
|
|
|
connect = ["trust-dns-proto/tokio-runtime", "trust-dns-resolver/tokio-runtime", "trust-dns-resolver/system-config"]
|
2020-12-29 01:38:41 +01:00
|
|
|
|
|
|
|
# use openssl impls
|
|
|
|
openssl = ["tls-openssl", "tokio-openssl"]
|
2019-12-02 06:30:27 +01:00
|
|
|
|
2020-12-29 01:38:41 +01:00
|
|
|
# use rustls impls
|
|
|
|
rustls = ["tls-rustls", "webpki", "webpki-roots", "tokio-rustls"]
|
|
|
|
|
|
|
|
# use native-tls impls
|
|
|
|
native-tls = ["tls-native-tls", "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
|
|
|
|
uri = ["http"]
|
|
|
|
|
2019-12-02 06:30:27 +01:00
|
|
|
[dependencies]
|
2020-12-29 01:38:41 +01:00
|
|
|
actix-codec = "0.4.0-beta.1"
|
2021-01-09 16:19:16 +01:00
|
|
|
actix-rt = "2.0.0-beta.2"
|
|
|
|
actix-service = "2.0.0-beta.3"
|
2020-12-29 01:38:41 +01:00
|
|
|
actix-utils = "3.0.0-beta.1"
|
2020-09-08 19:00:07 +02:00
|
|
|
|
2020-12-29 01:38:41 +01:00
|
|
|
derive_more = "0.99.5"
|
|
|
|
either = "1.6"
|
|
|
|
futures-util = { version = "0.3.7", default-features = false }
|
2020-12-29 12:36:17 +01:00
|
|
|
http = { version = "0.2.2", optional = true }
|
2020-12-29 01:38:41 +01:00
|
|
|
log = "0.4"
|
2020-12-29 12:36:17 +01:00
|
|
|
|
|
|
|
# resolver
|
2020-12-30 23:11:50 +01:00
|
|
|
trust-dns-proto = { version = "0.20.0", default-features = false, optional = true }
|
|
|
|
trust-dns-resolver = { version = "0.20.0", default-features = false, optional = true }
|
2019-12-02 06:30:27 +01:00
|
|
|
|
|
|
|
# openssl
|
2020-12-29 01:38:41 +01:00
|
|
|
tls-openssl = { package = "openssl", version = "0.10", optional = true }
|
|
|
|
tokio-openssl = { version = "0.6", optional = true }
|
|
|
|
|
|
|
|
# TODO: Reduce dependencies where tokio wrappers re-export base crate.
|
2019-12-02 06:30:27 +01:00
|
|
|
|
|
|
|
# rustls
|
2020-12-29 01:38:41 +01:00
|
|
|
tls-rustls = { package = "rustls", version = "0.19", optional = true }
|
|
|
|
tokio-rustls = { version = "0.22", optional = true }
|
2019-12-02 06:30:27 +01:00
|
|
|
webpki = { version = "0.21", optional = true }
|
2020-12-29 01:38:41 +01:00
|
|
|
webpki-roots = { version = "0.21", 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
|
|
|
tls-native-tls = { package = "native-tls", version = "0.2", optional = true }
|
|
|
|
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]
|
2021-01-03 05:39:37 +01:00
|
|
|
actix-server = "2.0.0-beta.2"
|
2020-12-29 01:38:41 +01:00
|
|
|
bytes = "1"
|
|
|
|
env_logger = "0.8"
|
2020-12-29 12:36:17 +01:00
|
|
|
futures-util = { version = "0.3.7", default-features = false, features = ["sink"] }
|
|
|
|
log = "0.4"
|