Add support for both rustls and tlsnative
This commit is contained in:
parent
3d53baf128
commit
ae52f6444d
5 changed files with 58 additions and 14 deletions
|
|
@ -16,19 +16,24 @@ bytes = "1"
|
|||
futures = "0.3"
|
||||
idna = "0.2"
|
||||
log = "0.4"
|
||||
native-tls = "0.2"
|
||||
native-tls = { version = "0.2", optional = true }
|
||||
sasl = "0.5"
|
||||
tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] }
|
||||
tokio-util = { version = "0.6", features = ["codec"] }
|
||||
tokio-native-tls = { version = "0.3", optional = true }
|
||||
tokio-rustls = { version = "0.22", optional = true }
|
||||
tokio-stream = { version = "0.1", features = [] }
|
||||
tokio-tls = { package = "tokio-native-tls", version = "0.3" }
|
||||
trust-dns-resolver = "0.20"
|
||||
tokio-util = { version = "0.6", features = ["codec"] }
|
||||
trust-dns-proto = "0.20"
|
||||
trust-dns-resolver = "0.20"
|
||||
xml5ever = "0.16"
|
||||
xmpp-parsers = "0.18"
|
||||
webpki = { version = "0.21", optional = true }
|
||||
|
||||
[build-dependencies]
|
||||
rustc_version = "0.3"
|
||||
|
||||
[features]
|
||||
default = ["tls-native"]
|
||||
tls-rust = ["tokio-rustls", "webpki"]
|
||||
tls-native = ["tokio-native-tls", "native-tls"]
|
||||
serde = ["xmpp-parsers/serde"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue