use trust-dns in reqwest

The default DNS resolution, if interrupted by an Abortable, will
cause a panic:

57ef271500/src/client/connect/dns.rs (L144)
This commit is contained in:
Damien Elmes 2020-06-03 15:47:54 +10:00
parent 63201d450d
commit abe90d0772

View File

@ -59,10 +59,10 @@ version = "0.23.1"
features = ["trace", "functions", "collation", "bundled"]
[target.'cfg(linux)'.dependencies]
reqwest = { version = "0.10.1", features = ["json", "socks", "stream", "native-tls-vendored"] }
reqwest = { version = "0.10.1", features = ["json", "socks", "stream", "trust-dns", "native-tls-vendored"] }
[target.'cfg(not(linux))'.dependencies]
reqwest = { version = "0.10.1", features = ["json", "socks", "stream" ] }
reqwest = { version = "0.10.1", features = ["json", "socks", "stream", "trust-dns" ] }
[build-dependencies]
prost-build = "0.6.1"