Remove trust-dns when target_os is Android

This commit is contained in:
Sean McArthur
2019-01-10 12:46:44 -08:00
parent b71787be86
commit 2649f9ab56
4 changed files with 22 additions and 1 deletions

View File

@@ -31,7 +31,6 @@ tokio-executor = "0.1.4" # a minimum version so trust-dns-resolver compiles
tokio-io = "0.1"
tokio-threadpool = "0.1.8" # a minimum version so tokio compiles
tokio-timer = "0.2.6" # a minimum version so trust-dns-resolver compiles
trust-dns-resolver = "0.10"
url = "1.2"
uuid = { version = "0.7", features = ["v4"] }
hyper-rustls = { version = "0.15", optional = true }
@@ -39,6 +38,9 @@ tokio-rustls = { version = "0.8", optional = true }
webpki-roots = { version = "0.15", optional = true }
rustls = { version = "0.14", features = ["dangerous_configuration"], optional = true }
[target.'cfg(not(target_os = "android"))'.dependencies]
trust-dns-resolver = "0.10"
[dev-dependencies]
env_logger = "0.6"
serde_derive = "1.0"