DNS/TLS deps are now optional, component now also uses ServerConnector
This commit is contained in:
parent
e784b15402
commit
733d005f51
17 changed files with 440 additions and 337 deletions
|
|
@ -14,17 +14,12 @@ edition = "2021"
|
|||
[dependencies]
|
||||
bytes = "1"
|
||||
futures = "0.3"
|
||||
idna = "0.4"
|
||||
log = "0.4"
|
||||
native-tls = { version = "0.2", optional = true }
|
||||
tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] }
|
||||
tokio-native-tls = { version = "0.3", optional = true }
|
||||
tokio-rustls = { version = "0.24", optional = true }
|
||||
tokio-stream = { version = "0.1", features = [] }
|
||||
tokio-util = { version = "0.7", features = ["codec"] }
|
||||
hickory-resolver = "0.24"
|
||||
rxml = "0.9.1"
|
||||
webpki-roots = { version = "0.25", optional = true }
|
||||
rxml = "0.9.1"
|
||||
rand = "^0.8"
|
||||
syntect = { version = "5", optional = true }
|
||||
# same repository dependencies
|
||||
|
|
@ -32,11 +27,21 @@ minidom = { version = "0.15", path = "../minidom" }
|
|||
sasl = { version = "0.5", path = "../sasl" }
|
||||
xmpp-parsers = { version = "0.20", path = "../parsers" }
|
||||
|
||||
# these are only needed for starttls ServerConnector support
|
||||
hickory-resolver = { version = "0.24", optional = true}
|
||||
idna = { version = "0.4", optional = true}
|
||||
native-tls = { version = "0.2", optional = true }
|
||||
tokio-native-tls = { version = "0.3", optional = true }
|
||||
tokio-rustls = { version = "0.24", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = { version = "0.10", default-features = false, features = ["auto-color", "humantime"] }
|
||||
|
||||
[features]
|
||||
default = ["tls-native"]
|
||||
default = ["starttls-rust"]
|
||||
starttls = ["hickory-resolver", "idna"]
|
||||
tls-rust = ["tokio-rustls", "webpki-roots"]
|
||||
tls-native = ["tokio-native-tls", "native-tls"]
|
||||
starttls-native = ["starttls", "tls-native"]
|
||||
starttls-rust = ["starttls", "tls-rust"]
|
||||
syntax-highlighting = ["syntect"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue