diff --git a/transports/dns/src/lib.rs b/transports/dns/src/lib.rs index 1b9bb199200..7f76a378990 100644 --- a/transports/dns/src/lib.rs +++ b/transports/dns/src/lib.rs @@ -65,6 +65,7 @@ use libp2p_core::{ }; use parking_lot::Mutex; use smallvec::SmallVec; +#[cfg(any(feature = "async-std", feature = "tokio"))] use std::io; use std::{ convert::TryFrom,