use hyper-tls and hyper-trust-dns as http(s) clients

This commit is contained in:
Jun Kurihara 2022-06-16 20:01:26 -04:00
commit 8fff4f4088
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
4 changed files with 138 additions and 80 deletions

View file

@ -14,6 +14,7 @@ publish = false
[features]
default = ["tls"]
tls = ["tokio-rustls", "rustls-pemfile"]
forward-hyper-trust-dns = ["hyper-trust-dns"]
[dependencies]
anyhow = "1.0.57"
@ -40,6 +41,13 @@ tokio-rustls = { version = "0.23.4", features = [
"early-data",
], optional = true }
rustls-pemfile = { version = "1.0.0", optional = true }
hyper-trust-dns = { version = "0.4.2", default-features = false, features = [
"rustls-http2",
"dnssec-ring",
"dns-over-https-rustls",
"rustls-webpki",
], optional = true }
hyper-tls = "0.5.0"
[dev-dependencies]