Skip to content

Commit 2357b04

Browse files
authored
fix(swarm): release libp2p-swarm-derive 0.35.0
Release libp2p-swarm-derive 0.35.0 and update `libp2p-swarm` to it to fix `NetworkBehaviour` derive macro generation. Pull-Request: #5545.
1 parent 0c143ff commit 2357b04

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ libp2p-rendezvous = { version = "0.15.0", path = "protocols/rendezvous" }
102102
libp2p-request-response = { version = "0.27.0", path = "protocols/request-response" }
103103
libp2p-server = { version = "0.12.7", path = "misc/server" }
104104
libp2p-stream = { version = "0.2.0-alpha", path = "protocols/stream" }
105-
libp2p-swarm = { version = "0.45.0", path = "swarm" }
106-
libp2p-swarm-derive = { version = "=0.34.2", path = "swarm-derive" } # `libp2p-swarm-derive` may not be compatible with different `libp2p-swarm` non-breaking releases. E.g. `libp2p-swarm` might introduce a new enum variant `FromSwarm` (which is `#[non-exhaustive]`) in a non-breaking release. Older versions of `libp2p-swarm-derive` would not forward this enum variant within the `NetworkBehaviour` hierarchy. Thus the version pinning is required.
105+
libp2p-swarm = { version = "0.45.1", path = "swarm" }
106+
libp2p-swarm-derive = { version = "=0.35.0", path = "swarm-derive" } # `libp2p-swarm-derive` may not be compatible with different `libp2p-swarm` non-breaking releases. E.g. `libp2p-swarm` might introduce a new enum variant `FromSwarm` (which is `#[non-exhaustive]`) in a non-breaking release. Older versions of `libp2p-swarm-derive` would not forward this enum variant within the `NetworkBehaviour` hierarchy. Thus the version pinning is required.
107107
libp2p-swarm-test = { version = "0.4.0", path = "swarm-test" }
108108
libp2p-tcp = { version = "0.42.0", path = "transports/tcp" }
109109
libp2p-tls = { version = "0.5.0", path = "transports/tls" }

swarm-derive/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.35.0
2+
3+
- Implement refactored `Transport`.
4+
See [PR 4568](https://github.com/libp2p/rust-libp2p/pull/4568)
5+
16
## 0.34.2
27

38
- Generate code for `libp2p-swarm`'s `FromSwarm::NewExternalAddrOfPeer` enum variant.

swarm-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-swarm-derive"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "Procedural macros of libp2p-swarm"
6-
version = "0.34.2"
6+
version = "0.35.0"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

swarm/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.45.1
2+
3+
- Update `libp2p-swarm-derive` to version `0.35.0`, see [PR XXXX]
4+
5+
[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX
16

27
## 0.45.0
38

swarm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-swarm"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "The libp2p swarm"
6-
version = "0.45.0"
6+
version = "0.45.1"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

0 commit comments

Comments
 (0)