Skip to content

Commit b581fca

Browse files
authored
Merge branch 'master' into dependabot/go_modules/wasm-tests/webtransport-tests/echo-server/github.com/quic-go/quic-go-0.48.2
2 parents 6027340 + 276ce84 commit b581fca

File tree

24 files changed

+131
-40
lines changed

24 files changed

+131
-40
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ rust-version = "1.75.0"
7474
[workspace.dependencies]
7575
libp2p = { version = "0.54.2", path = "libp2p" }
7676
libp2p-allow-block-list = { version = "0.4.2", path = "misc/allow-block-list" }
77-
libp2p-autonat = { version = "0.13.1", path = "protocols/autonat" }
77+
libp2p-autonat = { version = "0.13.2", path = "protocols/autonat" }
7878
libp2p-connection-limits = { version = "0.4.1", path = "misc/connection-limits" }
7979
libp2p-core = { version = "0.42.1", path = "core" }
8080
libp2p-dcutr = { version = "0.12.1", path = "protocols/dcutr" }
@@ -83,7 +83,7 @@ libp2p-floodsub = { version = "0.45.0", path = "protocols/floodsub" }
8383
libp2p-gossipsub = { version = "0.48.0", path = "protocols/gossipsub" }
8484
libp2p-identify = { version = "0.46.0", path = "protocols/identify" }
8585
libp2p-identity = { version = "0.2.10" }
86-
libp2p-kad = { version = "0.47.0", path = "protocols/kad" }
86+
libp2p-kad = { version = "0.47.1", path = "protocols/kad" }
8787
libp2p-mdns = { version = "0.46.0", path = "protocols/mdns" }
8888
libp2p-memory-connection-limits = { version = "0.3.1", path = "misc/memory-connection-limits" }
8989
libp2p-metrics = { version = "0.15.0", path = "misc/metrics" }
@@ -95,8 +95,8 @@ libp2p-plaintext = { version = "0.42.0", path = "transports/plaintext" }
9595
libp2p-pnet = { version = "0.25.0", path = "transports/pnet" }
9696
libp2p-quic = { version = "0.11.2", path = "transports/quic" }
9797
libp2p-relay = { version = "0.18.1", path = "protocols/relay" }
98-
libp2p-rendezvous = { version = "0.15.0", path = "protocols/rendezvous" }
99-
libp2p-request-response = { version = "0.27.1", path = "protocols/request-response" }
98+
libp2p-rendezvous = { version = "0.15.1", path = "protocols/rendezvous" }
99+
libp2p-request-response = { version = "0.28.0", path = "protocols/request-response" }
100100
libp2p-server = { version = "0.12.8", path = "misc/server" }
101101
libp2p-stream = { version = "0.2.0-alpha.1", path = "protocols/stream" }
102102
libp2p-swarm = { version = "0.45.2", path = "swarm" }

libp2p/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
- Deprecate `void` crate.
44
See [PR 5676](https://github.com/libp2p/rust-libp2p/pull/5676).
55

6+
- Expose swarm builder phase errors.
7+
See [PR 5726](https://github.com/libp2p/rust-libp2p/pull/5726).
8+
69
## 0.54.1
710

811
- Update individual crates.

libp2p/src/builder.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ mod phase;
44
mod select_muxer;
55
mod select_security;
66

7+
#[cfg(all(not(target_arch = "wasm32"), feature = "websocket"))]
8+
pub use phase::WebsocketError;
9+
pub use phase::{BehaviourError, TransportError};
10+
711
/// Build a [`Swarm`](libp2p_swarm::Swarm) by combining an identity, a set of
812
/// [`Transport`](libp2p_core::Transport)s and a
913
/// [`NetworkBehaviour`](libp2p_swarm::NetworkBehaviour).

libp2p/src/builder/phase.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ use swarm::*;
2929
use tcp::*;
3030
use websocket::*;
3131

32+
pub use behaviour::BehaviourError;
33+
pub use other_transport::TransportError;
34+
#[cfg(all(not(target_arch = "wasm32"), feature = "websocket"))]
35+
pub use websocket::WebsocketError;
36+
3237
use super::{
3338
select_muxer::SelectMuxerUpgrade, select_security::SelectSecurityUpgrade, SwarmBuilder,
3439
};

libp2p/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,17 @@ pub mod bandwidth;
148148
#[cfg(doc)]
149149
pub mod tutorials;
150150

151+
#[cfg(all(not(target_arch = "wasm32"), feature = "websocket"))]
152+
pub use builder::WebsocketError as WebsocketBuilderError;
151153
pub use libp2p_identity as identity;
152154
pub use libp2p_identity::PeerId;
153155
pub use libp2p_swarm::{Stream, StreamProtocol};
154156

155157
pub use self::{
156-
builder::SwarmBuilder,
158+
builder::{
159+
BehaviourError as BehaviourBuilderError, SwarmBuilder,
160+
TransportError as TransportBuilderError,
161+
},
157162
core::{
158163
transport::TransportError,
159164
upgrade::{InboundUpgrade, OutboundUpgrade},

protocols/autonat/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.13.2
2+
3+
- Update to `libp2p-request-response` `v0.28.0`.
4+
15
## 0.13.1
26

37
- Verify that an incoming AutoNAT dial comes from a connected peer. See [PR 5597](https://github.com/libp2p/rust-libp2p/pull/5597).

protocols/autonat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-autonat"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "NAT and firewall detection for libp2p"
6-
version = "0.13.1"
6+
version = "0.13.2"
77
authors = [
88
"David Craven <[email protected]>",
99
"Elena Frank <[email protected]>",

protocols/autonat/src/v1/behaviour/as_client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ impl HandleInnerEvent for AsClient<'_> {
112112
request_id,
113113
response,
114114
},
115+
..
115116
} => {
116117
tracing::debug!(?response, "Outbound dial-back request returned response");
117118

@@ -154,6 +155,7 @@ impl HandleInnerEvent for AsClient<'_> {
154155
peer,
155156
error,
156157
request_id,
158+
..
157159
} => {
158160
tracing::debug!(
159161
%peer,

protocols/autonat/src/v1/behaviour/as_server.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ impl HandleInnerEvent for AsServer<'_> {
107107
request,
108108
channel,
109109
},
110+
..
110111
} => {
111112
let probe_id = self.probe_id.next();
112113
if !self.connected.contains_key(&peer) {
@@ -183,6 +184,7 @@ impl HandleInnerEvent for AsServer<'_> {
183184
peer,
184185
error,
185186
request_id,
187+
..
186188
} => {
187189
tracing::debug!(
188190
%peer,

0 commit comments

Comments
 (0)