NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2677 most downloaded on crates.io
Procedural macros of libp2p-swarm
Latest stable
0.36.0
Last release 2 months ago
11 Sep 2026
Release timing varies
gaps range from 2 weeks to 1.2 years
Nearly every release is documented
notes for 22 of 22 stable releases
1 version withdrawn
withdrawn after publishing
6 years old
24 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
See individual changelogs for details.
See individual changelogs for details.
Fix NetworkBehaviour derive macro: replace the Result with std::Result. See PR 4568
NetworkBehaviour derive macro: replace the Result with std::result::Result.
See PR 4568Your coding agent can read these notes before it upgrades. Set up the MCP server →
Implement refactored Transport. See PR 4568
Transport.
See PR 4568Generate code for libp2p-swarm's FromSwarm::NewExternalAddrOfPeer enum variant. See PR 4371.
Always forward all variants of FromSwarm. See PR 4825.
FromSwarm.
See PR 4825.Remove supported for deprecated #[behaviour(out_event = "...")]. To same functionality is available using #[behaviour(to_swarm = "...")] See PR 4737.
Rename out_event to to_swarm and deprecate out_event. See [PR 3848].
Replace NetworkBehaviour Derive macro deprecated inject_* method implementations with the new on_swarm_event and on_connection_handler_event. See [PR…
Fix NetworkBehaviour Derive macro for generic types when out_event was not provided. Previously the enum generated
didn't have the NetworkBehaviour impl constraints whilst using the generics for <Generic>::OutEvent.
See PR 3393.
Replace NetworkBehaviour Derive macro deprecated inject_* method implementations
with the new on_swarm_event and on_connection_handler_event.
See PR 3011 and PR 3264.
Add prelude configuration option. The derive-macro generates code that needs to refer to various symbols. See [PR 3055].
Nothing published for this version
Fix an issue where the derive would generate bad code if the type parameters between the behaviour and a custom out event differed. See [PR 2907].
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.
Remove support for removed NetworkBehaviourEventProcess. See PR 2840.
Remove support for custom poll method on NetworkBehaviour via #[behaviour(poll_method = "poll")]. See PR 2841.
NetworkBehaviour fields on main struct via #[behaviour(ignore)]. See
PR 2842.Generate NetworkBehaviour::OutEvent if not provided through #[behaviour(out_event = "MyOutEvent")] and event processing is disabled (default).
NetworkBehaviour::OutEvent if not provided through #[behaviour(out_event = "MyOutEvent")] and event processing is disabled (default).Import ListenerId from libp2p::transport. See [PR 2652].
ListenerId from libp2p::core::transport. See PR 2652.Replace references of Protocol Handler with Connection Handler. See [PR 2640].
Allow mixing of ignored fields. See [PR 2570].
Adjust to latest changes in libp2p-swarm.
libp2p-swarm.Remove unnecessary clone of error in inject_dial_failure (see [PR 2349]).
Adjust to advanced dialing requests API changes (see [PR 2317]).
Update to latest libp2p-swarm changes (see [PR 2191]).
Update to latest libp2p-swarm changes (see PR 2191).
Make event_process = false the default.
Nothing published for this version
Handle NetworkBehaviourAction::CloseConnection. See [PR 2110] for details.
NetworkBehaviourAction::CloseConnection. See PR 2110 for details.Extend NetworkBehaviour callbacks, more concretely introducing new fn inject_new_listener and fn inject_expired_external_addr and have fn inject_{new,
NetworkBehaviour callbacks, more concretely introducing new fn inject_new_listener and fn inject_expired_external_addr and have fn inject_{new,expired}_listen_addr provide a ListenerId PR
2011.Rename the crate to libp2p-swarm-derive.
libp2p-swarm-derive.One column per quarter.