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

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+4-4
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

+3
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

+4
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

+5
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

+6-1
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

+4
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

+1-1
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

+2
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

+2
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,

protocols/gossipsub/src/behaviour.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2761,7 +2761,7 @@ where
27612761
| RpcOut::Prune(_)
27622762
| RpcOut::Subscribe(_)
27632763
| RpcOut::Unsubscribe(_) => {
2764-
unreachable!("Channel for highpriority contorl messages is unbounded and should always be open.")
2764+
unreachable!("Channel for highpriority control messages is unbounded and should always be open.")
27652765
}
27662766
}
27672767

protocols/kad/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.47.1
2+
3+
- Expose Distance private field U256 to public.
4+
See [PR 5705](https://github.com/libp2p/rust-libp2p/pull/5705).
5+
16
## 0.47.0
27

38
- Expose a kad query facility allowing specify num_results dynamicaly.

protocols/kad/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-kad"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "Kademlia protocol for libp2p"
6-
version = "0.47.0"
6+
version = "0.47.1"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

protocols/kad/src/kbucket/key.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use crate::record;
3535

3636
construct_uint! {
3737
/// 256-bit unsigned integer.
38-
pub(super) struct U256(4);
38+
pub struct U256(4);
3939
}
4040

4141
/// A `Key` in the DHT keyspace with preserved preimage.
@@ -193,7 +193,7 @@ impl AsRef<KeyBytes> for KeyBytes {
193193

194194
/// A distance between two keys in the DHT keyspace.
195195
#[derive(Copy, Clone, PartialEq, Eq, Default, PartialOrd, Ord, Debug)]
196-
pub struct Distance(pub(super) U256);
196+
pub struct Distance(pub U256);
197197

198198
impl Distance {
199199
/// Returns the integer part of the base 2 logarithm of the [`Distance`].

protocols/kad/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub use behaviour::{
6767
QueryResult, QueryStats, Quorum, RoutingUpdate, StoreInserts,
6868
};
6969
pub use kbucket::{
70-
Distance as KBucketDistance, EntryView, KBucketRef, Key as KBucketKey, NodeStatus,
70+
Distance as KBucketDistance, EntryView, KBucketRef, Key as KBucketKey, NodeStatus, U256,
7171
};
7272
use libp2p_swarm::StreamProtocol;
7373
pub use protocol::{ConnectionType, KadPeer};

protocols/rendezvous/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.15.1
2+
3+
- Update to `libp2p-request-response` `v0.28.0`.
4+
15
## 0.15.0
26

37
<!-- Update to libp2p-swarm v0.45.0 -->

protocols/rendezvous/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-rendezvous"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "Rendezvous protocol for libp2p"
6-
version = "0.15.0"
6+
version = "0.15.1"
77
authors = ["The COMIT guys <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

protocols/rendezvous/src/server.rs

+3
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ impl NetworkBehaviour for Behaviour {
183183
libp2p_request_response::Message::Request {
184184
request, channel, ..
185185
},
186+
..
186187
}) => {
187188
if let Some((event, response)) =
188189
handle_request(peer_id, request, &mut self.registrations)
@@ -202,6 +203,7 @@ impl NetworkBehaviour for Behaviour {
202203
peer,
203204
request_id,
204205
error,
206+
..
205207
}) => {
206208
tracing::warn!(
207209
%peer,
@@ -217,6 +219,7 @@ impl NetworkBehaviour for Behaviour {
217219
| ToSwarm::GenerateEvent(libp2p_request_response::Event::Message {
218220
peer: _,
219221
message: libp2p_request_response::Message::Response { .. },
222+
..
220223
})
221224
| ToSwarm::GenerateEvent(libp2p_request_response::Event::OutboundFailure {
222225
..

protocols/request-response/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.28.0
2+
3+
- Add connection id to the events emitted by a request-response `Behaviour`.
4+
See [PR 5719](https://github.com/libp2p/rust-libp2p/pull/5719).
5+
16
## 0.27.1
27

38
- Deprecate `void` crate.

protocols/request-response/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-request-response"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "Generic Request/Response Protocols"
6-
version = "0.27.1"
6+
version = "0.28.0"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

0 commit comments

Comments
 (0)