From 6d49bf4a532dc2399bdf7e3bca30529d762abcc4 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 17 Nov 2022 23:06:30 +1100 Subject: [PATCH] fix: Allow `libp2p-mdns` to compile without feature-flags (#3131) Currently, `libp2p-mdns` fails to compile unless we enable the `tokio` runtime feature flag. This is caused by missing `cfg` statements upstream. See https://github.com/bluejekyll/trust-dns/issues/1830. Until this is fixed upstream, we temporarily enable the `tokio-runtime` feature of `trust-dns-proto`. --- protocols/mdns/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index 78b3a26d67f..af892a99e77 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -22,7 +22,7 @@ rand = "0.8.3" smallvec = "1.6.1" socket2 = { version = "0.4.0", features = ["all"] } tokio = { version = "1.19", default-features = false, features = ["net", "time"], optional = true} -trust-dns-proto = { version = "0.22.0", default-features = false, features = ["mdns"] } +trust-dns-proto = { version = "0.22.0", default-features = false, features = ["mdns", "tokio-runtime"] } void = "1.0.2" [features]