NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2861 most downloaded on crates.io
Ping protocol for libp2p
Latest stable
0.48.0
Last release 2 months ago
11 Sep 2026
Release timing varies
gaps range from 5 weeks to 1.2 years
Some releases are documented
notes for 32 of 54 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
56 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
> Remove deprecated NetworkBehaviourEventProcess. See [libp2p-swarm v0.38.0 changelog entry] for migration path.
Most notable changes:
Remove deprecated
NetworkBehaviourEventProcess. See libp2p-swarm v0.38.0 changelog entry for migration path.
Make RSA keypair support optional. To enable RSA support,
rsafeature should be enabled. See PR 2860.
Allow users to choose between async-io and tokio runtime in the mdns protocol implementation.
async-iois a default feature, with an additionaltokiofeature (see PR 2748)
For all other changes, see individual changelogs for details.
Thanks to the many folks involved!
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Most notable change is the deprecation of NetworkBehaviourEventProcess. See corresponding changelog entry on how to migrate.
Most notable change is the deprecation of NetworkBehaviourEventProcess. See corresponding changelog entry on how to migrate.
Also rust-libp2p v0.47.0 updates to prost v0.11.0 which no longer installs the protoc Protobuf compiler. Thus to build rust-libp2p you will need protoc installed locally. On CI you can use the arduino/setup-protoc GitHub action:
- name: Install Protoc
uses: arduino/setup-protoc@v1
For all other changes, see individual changelogs for details.
Small on the surface, though containing many internal refactorings. Shout out to @elenaf9 and @thomaseizinger!
Small on the surface, though containing many internal refactorings. Shout out to @elenaf9 and @thomaseizinger!
See individual changelogs for details.
void crate.
See PR 5676.<!-- Update to libp2p-core v0.43.0 -->
Medium size release. See individual changelogs for details.
Medium size release. See individual changelogs for details.
Impose Sync on ping::Failure::Other. ping::Event can now be shared between threads. See [PR 5250]
Sync on ping::Failure::Other.
ping::Event can now be shared between threads.
See PR 5250Small release. See individual changelogs for details.
Small release. See individual changelogs for details.
Honor ping interval in case of errors. Previously, we would immediately open another ping stream if the current one failed. See [PR 4423].
Medium size release, containing many internal refactorings as well as the last missing piece of basic hole punching, namely libp2p-dcutr. To try out h
Medium size release, containing many internal refactorings as well as the last missing piece of basic hole punching, namely libp2p-dcutr. To try out hole punching yourself, follow the tutorial.
Most notable breaking changes:
Fold
libp2p-core'sNetworkintoSwarm. See [PR 2492].
Along with this change, many types are now exposed through libp2p-swarm instead of libp2p-core. When in doubt, change libp2p::core:: to libp2p::swarm::.
Merge NetworkBehaviour's inject_* paired methods (see PR 2445).
- Rename
ProtocolsHandlertoConnectionHandler. Upgrade should be as simple as renaming all occurences ofProtocolsHandlertoConnectionHandlerwith your favorite text manipulation tool across your codebase. See [PR 2527].
See individual changelogs for details.
Raise MSRV to 1.65. See PR 3715.
Remove deprecated items. See PR 3702.
Don't close connections on ping failures.
To restore the previous behaviour, users should call Swarm::close_connection upon receiving a ping::Event with a ping::Failure.
This also removes the max_failures config option.
See PR 3947.
Larger release, among many other things adding most of the components required for hole-punching.
Larger release, among many other things adding most of the components required for hole-punching.
See individual changelogs for details.
Small release most notably improving WASM support.
Small release most notably improving WASM support.
See individual changelogs for details.
Update to libp2p-core v0.38.0.
Update to libp2p-swarm v0.41.0.
Replace Behaviour's NetworkBehaviour implementation inject_* methods with the new on_* methods.
See PR 3011.
Replace Handler's ConnectionHandler implementation inject_* methods with the new on_* methods.
See PR 3085.
Update rust-version to reflect the actual MSRV: 1.62.0. See PR 3090.
Nothing published for this version
Update to libp2p-swarm v0.39.0.
Update to libp2p-swarm v0.39.0.
Update to libp2p-core v0.36.0.
See individual changelogs for details.
See individual changelogs for details.
Update to libp2p-swarm v0.38.0.
Expose PROTOCOL_NAME. See PR 2734.
Update to libp2p-core v0.35.0.
Update to libp2p-swarm v0.37.0.
Update to libp2p-core v0.34.0.
Update to libp2p-swarm v0.37.0.
See individual changelogs for details.
See individual changelogs for details.
Update to libp2p-swarm v0.35.0.
libp2p-swarm v0.35.0.Update to libp2p-swarm v0.34.0.
Update to libp2p-core v0.32.0.
Update to libp2p-swarm v0.34.0.
Merge NetworkBehaviour's inject_* paired methods (see PR 2445).
Migrate to Rust edition 2021 (see [PR 2339]).
Update dependencies.
Migrate to Rust edition 2021 (see PR 2339).
Use instant and futures-timer instead of wasm-timer (see [PR 2245]).
Use instant and futures-timer instead of wasm-timer (see PR 2245).
Update dependencies.
Make default features of libp2p-core optional. PR 2181
Make default features of libp2p-core optional.
PR 2181
Update dependencies.
Don't close connection if ping protocol is unsupported by remote.
Previously, a failed protocol negotiation for ping caused a force close of the connection.
As a result, all nodes in a network had to support ping.
To allow networks where some nodes don't support ping, we now emit
PingFailure::Unsupported once for every connection on which ping is not supported.
In case you want to stick with the old behavior, you need to close the connection
manually on PingFailure::Unsupported.
Rename types as per discussion 2174.
Ping has been renamed to Behaviour.
The Ping prefix has been removed from various types like PingEvent.
Users should prefer importing the ping protocol as a module (use libp2p::ping;),
and refer to its types via ping::. For example: ping::Behaviour or ping::Event.
Nothing published for this version
Rust-libp2p versions in combination with `multihash` `< v0.11.3` are vulnerable to DoS attacks. Given that e.g. `PeerId::from_bytes` is called with un…
Among other changes, this release adds a requirement across all crates for multihash >= v0.11.3. Rust-libp2p versions in combination with multihash < v0.11.3 are vulnerable to DoS attacks. Given that e.g. PeerId::from_bytes is called with unsanitized data from possibly untrusted sources this call can panic with multihash < v0.11.3 see RustSec for details.
In case you run libp2p in untrusted environments please either (a) update to libp2p v0.30.0 or (b) make sure to run with multihash >=v0.11.3 via your downstream Cargo.lock file.
As always all other contained changes are listed in our CHANGELOG.md.
- Update libp2p-swarm.
libp2p-swarm.- Update libp2p-swarm.
libp2p-swarm.- Update dependencies.
Update libp2p-swarm and libp2p-core.
libp2p-swarm and libp2p-core.Update libp2p-swarm and libp2p-core.
libp2p-swarm and libp2p-core.- Update dependencies.
Update libp2p-swarm and libp2p-core.
Update libp2p-swarm and libp2p-core.
Ensure the outbound ping is flushed before awaiting the response. Otherwise the behaviour depends on implementation details of the stream muxer used. The current behaviour resulted in stalls with Mplex.
Update libp2p-swarm and libp2p-core.
libp2p-swarm and libp2p-core.Refactor the ping protocol for conformity by (re)using a single substream for outbound pings, addressing #1601.
Refactor the ping protocol for conformity by (re)using a single substream for outbound pings, addressing #1601.
Bump libp2p-core and libp2p-swarm dependencies.
- Updated dependencies.
- Updated dependencies.
Close substream in inbound upgrade PR 1606.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.