diff --git a/protocols/rendezvous/tests/harness.rs b/protocols/rendezvous/tests/harness.rs index 8786d61c2f1..555a5476bab 100644 --- a/protocols/rendezvous/tests/harness.rs +++ b/protocols/rendezvous/tests/harness.rs @@ -22,7 +22,6 @@ use async_trait::async_trait; use futures::stream::FusedStream; use futures::StreamExt; use futures::{future, Stream}; -use libp2p::core::muxing::StreamMuxerBox; use libp2p::core::transport::upgrade::Version; use libp2p::core::transport::MemoryTransport; use libp2p::core::upgrade::SelectUpgrade; diff --git a/transports/uds/src/lib.rs b/transports/uds/src/lib.rs index 472fd1c607c..54d7a6f7ffa 100644 --- a/transports/uds/src/lib.rs +++ b/transports/uds/src/lib.rs @@ -31,7 +31,11 @@ //! The `UdsConfig` structs implements the `Transport` trait of the `core` library. See the //! documentation of `core` and of libp2p in general to learn how to use the `Transport` trait. -#![cfg(all(unix, not(target_os = "emscripten")))] +#![cfg(all( + unix, + not(target_os = "emscripten"), + any(feature = "tokio", feature = "async-std") +))] #![cfg_attr(docsrs, doc(cfg(all(unix, not(target_os = "emscripten")))))] use futures::stream::BoxStream;