mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 08:11:39 +00:00
chore(libp2p): remove non-existent features from cfg
s
These features have long been removed and the `cfg` statement can thus be simplified. Pull-Request: #4042.
This commit is contained in:
@ -163,24 +163,13 @@ pub use libp2p_swarm::{Stream, StreamProtocol};
|
|||||||
/// > reserves the right to support additional protocols or remove deprecated protocols.
|
/// > reserves the right to support additional protocols or remove deprecated protocols.
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
not(target_arch = "wasm32"),
|
not(target_arch = "wasm32"),
|
||||||
any(
|
feature = "tcp",
|
||||||
all(feature = "tcp-async-io", feature = "dns-async-std"),
|
feature = "dns",
|
||||||
all(feature = "tcp", feature = "dns", feature = "async-std")
|
|
||||||
),
|
|
||||||
feature = "websocket",
|
feature = "websocket",
|
||||||
feature = "noise",
|
feature = "noise",
|
||||||
feature = "yamux"
|
feature = "yamux",
|
||||||
|
feature = "async-std",
|
||||||
))]
|
))]
|
||||||
#[cfg_attr(
|
|
||||||
all(
|
|
||||||
any(feature = "tcp-async-io", feature = "dns-async-std"),
|
|
||||||
not(feature = "async-std")
|
|
||||||
),
|
|
||||||
deprecated(
|
|
||||||
since = "0.49.0",
|
|
||||||
note = "The `tcp-async-io` and `dns-async-std` features are deprecated. Use the new `tcp` and `dns` features together with the `async-std` feature."
|
|
||||||
)
|
|
||||||
)]
|
|
||||||
pub async fn development_transport(
|
pub async fn development_transport(
|
||||||
keypair: identity::Keypair,
|
keypair: identity::Keypair,
|
||||||
) -> std::io::Result<core::transport::Boxed<(PeerId, core::muxing::StreamMuxerBox)>> {
|
) -> std::io::Result<core::transport::Boxed<(PeerId, core::muxing::StreamMuxerBox)>> {
|
||||||
@ -219,24 +208,13 @@ pub async fn development_transport(
|
|||||||
/// > reserves the right to support additional protocols or remove deprecated protocols.
|
/// > reserves the right to support additional protocols or remove deprecated protocols.
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
not(target_arch = "wasm32"),
|
not(target_arch = "wasm32"),
|
||||||
any(
|
feature = "tcp",
|
||||||
all(feature = "tcp-tokio", feature = "dns-tokio"),
|
feature = "dns",
|
||||||
all(feature = "tcp", feature = "dns", feature = "tokio")
|
|
||||||
),
|
|
||||||
feature = "websocket",
|
feature = "websocket",
|
||||||
feature = "noise",
|
feature = "noise",
|
||||||
feature = "yamux"
|
feature = "yamux",
|
||||||
|
feature = "tokio",
|
||||||
))]
|
))]
|
||||||
#[cfg_attr(
|
|
||||||
all(
|
|
||||||
any(feature = "tcp-tokio", feature = "dns-tokio"),
|
|
||||||
not(feature = "tokio")
|
|
||||||
),
|
|
||||||
deprecated(
|
|
||||||
since = "0.49.0",
|
|
||||||
note = "The `tcp-tokio` and `dns-tokio` features are deprecated. Use the new `tcp` and `dns` feature together with the `tokio` feature."
|
|
||||||
)
|
|
||||||
)]
|
|
||||||
pub fn tokio_development_transport(
|
pub fn tokio_development_transport(
|
||||||
keypair: identity::Keypair,
|
keypair: identity::Keypair,
|
||||||
) -> std::io::Result<core::transport::Boxed<(PeerId, core::muxing::StreamMuxerBox)>> {
|
) -> std::io::Result<core::transport::Boxed<(PeerId, core::muxing::StreamMuxerBox)>> {
|
||||||
|
Reference in New Issue
Block a user