Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Prepare rust-libp2p v0.50.0 release #3163

Merged
merged 2 commits into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,20 @@

# `libp2p` facade crate

# 0.50.0 - [unreleased]
# 0.50.0

This is a large release. After > 4 years, rust-libp2p ships with an [(alpha) QUIC
implementation](transports/quic/CHANGELOG.md#070-alpha). The [necessary TLS logic is extracted into
its own crate](transports/tls/CHANGELOG.md#010-alpha), and can thus be used detached from QUIC, e.g.
on top of TCP as an alternative to Noise. In addition to these two transports, this release adds
a third, namely [WebRTC (browser-to-server)](transports/webrtc/CHANGELOG.md#040-alpha). But that is
definitely not it. See below for the many other changes packed into this release.

- Introduce [`libp2p-tls` `v0.1.0-alpha`](transports/tls/CHANGELOG.md#010-alpha). See [PR 2945].
- Introduce [`libp2p-quic` `v0.7.0-alpha`](transports/quic/CHANGELOG.md#070-alpha). See [PR 2289].
- Introduce [`libp2p-webrtc` `v0.4.0-alpha`](transports/webrtc/CHANGELOG.md#040-alpha). See [PR 2289].
- Remove deprecated features: `tcp-tokio`, `mdns-tokio`, `dns-tokio`, `tcp-async-io`, `mdns-async-io`, `dns-async-std`.
See [PR 3001].
- Introduce [`libp2p-tls` `v0.1.0`](transports/tls/CHANGELOG.md#010). See [PR 2945].
- Remove `NetworkBehaviour` macro export from root crate in favor of re-exported macro from `libp2p::swarm`.
Change your import from `libp2p::NetworkBehaviour` to `libp2p::swarm::NetworkBehaviour`. See [PR 3055].
- Feature-gate `NetworkBehaviour` macro behind `macros` feature flag. See [PR 3055].
Expand Down Expand Up @@ -100,7 +107,7 @@
- `tcp-async-io` in favor of `tcp` + `async-std`
- `mdns-async-io` in favor of `mdns` + `async-std`
- `dns-async-std` in favor of `dns` + `async-std`

See [PR 2962].

- Update individual crates.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ libp2p-mdns = { version = "0.42.0", path = "protocols/mdns", optional = true }
libp2p-quic = { version = "0.7.0-alpha", path = "transports/quic", optional = true }
libp2p-tcp = { version = "0.38.0", path = "transports/tcp", optional = true }
libp2p-tls = { version = "0.1.0-alpha", path = "transports/tls", optional = true }
libp2p-webrtc = { version = "0.1.0-alpha", path = "transports/webrtc", optional = true }
libp2p-webrtc = { version = "0.4.0-alpha", path = "transports/webrtc", optional = true }
libp2p-websocket = { version = "0.40.0", path = "transports/websocket", optional = true }

[target.'cfg(not(target_os = "unknown"))'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.38.0 [unreleased]
# 0.38.0

- Remove deprecated functions `StreamMuxerExt::next_{inbound,outbound}`. See [PR 3031].

Expand Down
2 changes: 1 addition & 1 deletion misc/metrics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.11.0 [unreleased]
# 0.11.0

- Update to `libp2p-dcutr` `v0.8.0`.

Expand Down
3 changes: 1 addition & 2 deletions misc/prost-codec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# 0.3.0 [unreleased]
# 0.3.0

- Implement `From` trait for `std::io::Error`. See [PR 2622].
- Don't leak `prost` dependency in `Error` type. See [PR 3058].
Expand Down
2 changes: 1 addition & 1 deletion muxers/mplex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.38.0 [unreleased]
# 0.38.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion muxers/yamux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.42.0 [unreleased]
# 0.42.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/autonat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.9.0 [unreleased]
# 0.9.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/dcutr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.8.0 [unreleased]
# 0.8.0

- Update to `prost-codec` `v0.3.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/floodsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.41.0 [unreleased]
# 0.41.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/gossipsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.43.0 [unreleased]
# 0.43.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/identify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.41.0 [unreleased]
# 0.41.0

- Change default `cache_size` of `Config` to 100. See [PR 2995].

Expand Down
2 changes: 1 addition & 1 deletion protocols/kad/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.42.0 [unreleased]
# 0.42.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/mdns/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.42.0 [unreleased]
# 0.42.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/ping/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.41.0 [unreleased]
# 0.41.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/relay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.14.0 [unreleased]
# 0.14.0

- Update to `prost-codec` `v0.3.0`.

Expand Down
2 changes: 1 addition & 1 deletion protocols/rendezvous/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.11.0 [unreleased]
# 0.11.0

- De- and encode protobuf messages using `prost-codec`. See [PR 3058].

Expand Down
2 changes: 1 addition & 1 deletion protocols/request-response/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.23.0 [unreleased]
# 0.23.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion swarm-derive/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.30.2 - [unreleased]
# 0.30.2

- Replace `NetworkBehaviour` Derive macro deprecated `inject_*` method implementations
with the new `on_swarm_event` and `on_connection_handler_event`.
Expand Down
2 changes: 1 addition & 1 deletion swarm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.41.0 [unreleased]
# 0.41.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion transports/deflate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.38.0 [unreleased]
# 0.38.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion transports/dns/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.38.0 [unreleased]
# 0.38.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
2 changes: 1 addition & 1 deletion transports/noise/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.41.0 [unreleased]
# 0.41.0

- Remove `prost::Error` from public API. See [PR 3058].

Expand Down
2 changes: 1 addition & 1 deletion transports/plaintext/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.38.0 [unreleased]
# 0.38.0

- Add more specific error reporting and remove `prost::Error` from public API. See [PR 3058].

Expand Down
2 changes: 1 addition & 1 deletion transports/quic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# 0.7.0-alpha [unreleased]
# 0.7.0-alpha

- Initial alpha release.
2 changes: 1 addition & 1 deletion transports/tcp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.38.0 [unreleased]
# 0.38.0

- Update to `if-watch` `v3.0.0` and pass through `tokio` and `async-io` features. See [PR 3101].

Expand Down
2 changes: 1 addition & 1 deletion transports/tls/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# 0.1.0 [unreleased]
# 0.1.0

Initial release.
2 changes: 1 addition & 1 deletion transports/uds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.37.0 [unreleased]
# 0.37.0

- Update `rust-version` to reflect the actual MSRV: 1.60.0. See [PR 3090].

Expand Down
2 changes: 1 addition & 1 deletion transports/wasm-ext/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.38.0 [unreleased]
# 0.38.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down
3 changes: 3 additions & 0 deletions transports/webrtc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0.4.0-alpha

- Initial alpha release.
2 changes: 1 addition & 1 deletion transports/webrtc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libp2p-webrtc"
version = "0.1.0-alpha"
version = "0.4.0-alpha"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is necessary, given that there is already v0.3.0 under the libp2p-webrtc crate on crates.io. See #3163.

//CC @melekes

authors = ["Parity Technologies <admin@parity.io>"]
description = "WebRTC transport for libp2p"
repository = "https://github.com/libp2p/rust-libp2p"
Expand Down
2 changes: 1 addition & 1 deletion transports/websocket/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.40.0 [unreleased]
# 0.40.0

- Update to `libp2p-core` `v0.38.0`.

Expand Down