Add dns feature for DNS stuff (not just in starttls)
This commit is contained in:
parent
d706b318c3
commit
97698b4d1e
8 changed files with 145 additions and 96 deletions
|
|
@ -41,7 +41,7 @@ tokio-xmpp = { path = ".", features = ["insecure-tcp"]}
|
|||
|
||||
[features]
|
||||
default = ["starttls-rust"]
|
||||
starttls = ["hickory-resolver", "idna"]
|
||||
starttls = ["dns"]
|
||||
tls-rust = ["tokio-rustls", "webpki-roots"]
|
||||
tls-native = ["tokio-native-tls", "native-tls"]
|
||||
starttls-native = ["starttls", "tls-native"]
|
||||
|
|
@ -50,6 +50,8 @@ insecure-tcp = []
|
|||
syntax-highlighting = ["syntect"]
|
||||
# Enable serde support in jid crate
|
||||
serde = [ "xmpp-parsers/serde" ]
|
||||
# Required by starttls, and used by insecure-tcp by default
|
||||
dns = [ "hickory-resolver", "idna" ]
|
||||
|
||||
[lints.rust]
|
||||
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(xmpprs_doc_build)'] }
|
||||
|
|
|
|||
Loading…
Reference in a new issue