PackageTrack
Sign in Get early access

libp2p-swarm-derive

Procedural macros of libp2p-swarm

0.35.1 16M downloads/mo #2403 most downloaded on crates.io libp2p/rust-libp2p

What this package is like to depend on

Last release 1 years ago

27 Jun 2025

Release timing varies

gaps range from 2 weeks to 11 months

Nearly every release is documented

notes for 21 of 21 stable releases

1 version withdrawn

withdrawn after publishing

6 years old

23 releases · first in 2021

0 releases in the last 12 months

see the full history below

Release timeline

23 releases · Feb 2021 to Jun 2025
2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 23
  1. 0.35.1 27 Jun 2025
    Release notes
    • Fix NetworkBehaviour derive macro: replace the Result with std::result::Result. See PR 4568
    Open source →
  2. 0.35.0 09 Aug 2024
    Release notes
    • Implement refactored Transport. See PR 4568
    Open source →
  3. 0.34.2 01 May 2024
    Release notes
    • Generate code for libp2p-swarm's FromSwarm::NewExternalAddrOfPeer enum variant. See PR 4371.

    • Restore support for generic constraints on behaviours combined with out_event generated by NetworkBehaviour where no where clause is used. See PR 5003.

    Open source →
  4. 0.34.1 09 Dec 2023
    Release notes
    • Always forward all variants of FromSwarm. See PR 4825.
    Open source →
  5. 0.34.0 05 Nov 2023
    Release notes
    • Adapt to interface changes in libp2p-swarm. See PR 4706.
    • Remove supported for deprecated #[behaviour(out_event = "...")]. To same functionality is available using #[behaviour(to_swarm = "...")] See PR 4737.
    Open source →
  6. 0.33.0 20 Jun 2023
    Release notes
    • Raise MSRV to 1.65. See PR 3715.

    • Rename out_event to to_swarm and deprecate out_event. See PR 3848.

    Open source →
  7. 0.32.0 24 Feb 2023
    Release notes
    • 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.

    Open source →
  8. 0.31.0 29 Nov 2022
    Release notes
    • Add prelude configuration option. The derive-macro generates code that needs to refer to various symbols. See PR 3055.

    • Update rust-version to reflect the actual MSRV: 1.60.0. See PR 3090.

    Open source →
  9. 0.30.2 25 Nov 2022 withdrawn

    Nothing published for this version

  10. 0.30.1 14 Oct 2022
    Release notes
    • 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.
    • Fix an issue where the derive would generate incorrect code depending on available imports. See PR 2921.
    Open source →
  11. 0.30.0 07 Sep 2022
    Release notes
    • Remove support for removed NetworkBehaviourEventProcess. See PR 2840.

    • Remove support for custom poll method on NetworkBehaviour via #[behaviour(poll_method = "poll")]. See PR 2841.

    • Remove support for non-NetworkBehaviour fields on main struct via #[behaviour(ignore)]. See PR 2842.
    Open source →
  12. 0.29.0 22 Aug 2022
    Release notes
    • Generate NetworkBehaviour::OutEvent if not provided through #[behaviour(out_event = "MyOutEvent")] and event processing is disabled (default).
    Open source →
  13. 0.28.0 05 Jul 2022
    Release notes
    • Import ListenerId from libp2p::core::transport. See PR 2652.
    Open source →
  14. 0.27.2 31 May 2022
    Release notes
    • Replace references of Protocol Handler with Connection Handler. See PR 2640.
    Open source →
  15. 0.27.1 18 Mar 2022
    Release notes
    • Allow mixing of ignored fields. See PR 2570.
    Open source →
  16. 0.27.0 22 Feb 2022
    Release notes
    • Adjust to latest changes in libp2p-swarm.
    Open source →
  17. 0.26.1 27 Jan 2022
    Release notes
    • Remove unnecessary clone of error in inject_dial_failure (see PR 2349).

    • Migrate to Rust edition 2021 (see PR 2339).

    Open source →
  18. 0.26.0 16 Nov 2021
    Release notes
    • Adjust to advanced dialing requests API changes (see PR 2317).
    Open source →
  19. 0.25.0 01 Nov 2021
    Release notes
    • Update to latest libp2p-swarm changes (see PR 2191).

    • Make event_process = false the default.

    Open source →
  20. 0.25.0-rc.1 15 Oct 2021 pre-release

    Nothing published for this version

  21. 0.24.0 12 Jul 2021
    Release notes
    • Handle NetworkBehaviourAction::CloseConnection. See PR 2110 for details.
    Open source →
  22. 0.23.0 14 Apr 2021
    Release notes
    • Extend 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.
    Open source →
  23. 0.22.0 15 Feb 2021
    Release notes
    • Rename the crate to libp2p-swarm-derive.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive