diff --git a/Cargo.lock b/Cargo.lock index 9804aed154c..c39664be258 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2408,7 +2408,6 @@ dependencies = [ "libp2p-mdns", "libp2p-metrics", "libp2p-noise", - "libp2p-perf", "libp2p-ping", "libp2p-plaintext", "libp2p-pnet", diff --git a/libp2p/CHANGELOG.md b/libp2p/CHANGELOG.md index e073fccf7dd..f5e9ed6e91e 100644 --- a/libp2p/CHANGELOG.md +++ b/libp2p/CHANGELOG.md @@ -9,7 +9,7 @@ This newtype enforces additional variants like a leading forward-slash. We encourage users to use `StreamProtocol` when implementing `UpgradeInfo`. See [PR 3746]. - + - Rename `NetworkBehaviour::OutEvent` to `NetworkBehaviour::ToSwarm`, `ConnectionHandler::InEvent` to `ConnectionHandler::FromBehaviour`, `ConnectionHandler::OutEvent` to `ConnectionHandler::ToBehaviour`. See [PR 3848]. - Remove deprecated `mplex` module. @@ -17,10 +17,14 @@ This also removes `mplex` from the `development_transport` and `tokio_development_transport` functions. See [PR 3920]. +- Remove `libp2p-perf` protocol. To use `libp2p-perf` one needs to import it directly. + See [PR 3990]. + [PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715 [PR 3746]: https://github.com/libp2p/rust-libp2p/pull/3746 [PR 3848]: https://github.com/libp2p/rust-libp2p/pull/3848 [PR 3920]: https://github.com/libp2p/rust-libp2p/pull/3920 +[PR 3990]: https://github.com/libp2p/rust-libp2p/pull/3990 ## 0.51.3 diff --git a/libp2p/Cargo.toml b/libp2p/Cargo.toml index 218dd8b763b..7cedac929c6 100644 --- a/libp2p/Cargo.toml +++ b/libp2p/Cargo.toml @@ -27,7 +27,6 @@ full = [ "mdns", "metrics", "noise", - "perf", "ping", "plaintext", "pnet", @@ -65,7 +64,6 @@ macros = ["libp2p-swarm/macros"] mdns = ["dep:libp2p-mdns"] metrics = ["dep:libp2p-metrics"] noise = ["dep:libp2p-noise"] -perf = ["dep:libp2p-perf"] ping = ["dep:libp2p-ping", "libp2p-metrics?/ping"] plaintext = ["dep:libp2p-plaintext"] pnet = ["dep:libp2p-pnet"] @@ -123,7 +121,6 @@ pin-project = "1.0.0" libp2p-deflate = { workspace = true, optional = true } libp2p-dns = { workspace = true, optional = true } libp2p-mdns = { workspace = true, optional = true } -libp2p-perf = { workspace = true, optional = true } libp2p-quic = { workspace = true, optional = true } libp2p-tcp = { workspace = true, optional = true } libp2p-tls = { workspace = true, optional = true } diff --git a/libp2p/src/lib.rs b/libp2p/src/lib.rs index 917c1c86edc..2a359509dc1 100644 --- a/libp2p/src/lib.rs +++ b/libp2p/src/lib.rs @@ -85,11 +85,6 @@ pub use libp2p_metrics as metrics; #[cfg(feature = "noise")] #[doc(inline)] pub use libp2p_noise as noise; -#[cfg(feature = "perf")] -#[cfg(not(target_arch = "wasm32"))] -#[cfg_attr(docsrs, doc(cfg(feature = "perf")))] -#[doc(inline)] -pub use libp2p_perf as perf; #[cfg(feature = "ping")] #[doc(inline)] pub use libp2p_ping as ping;