fix(libp2p): don't re-export libp2p-perf

This commit removes the `libp2p-perf` protocol from `libp2p` crate. To use `libp2p-perf` one needs to import it directly. Rational beeing that `libp2p-perf`'s API is not yet stable enough and will most likely require breaking changes in the near future.

Pull-Request: #3990.
This commit is contained in:
Max Inden 2023-05-26 10:38:55 +02:00 committed by GitHub
parent bbba8b3f65
commit d4c4078e6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 10 deletions

1
Cargo.lock generated
View File

@ -2408,7 +2408,6 @@ dependencies = [
"libp2p-mdns",
"libp2p-metrics",
"libp2p-noise",
"libp2p-perf",
"libp2p-ping",
"libp2p-plaintext",
"libp2p-pnet",

View File

@ -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

View File

@ -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 }

View File

@ -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;