Skip to content

Commit 5093602

Browse files
committed
Update CHANGELOG for webrtc_utils, relay and webrtc-websys. Removes libp2pwebrtc-websys::Error variants ProtoSerialization and Signaling. Removes deprecated wasm-timer crate for web-time.
1 parent c19c4d9 commit 5093602

File tree

12 files changed

+73
-118
lines changed

12 files changed

+73
-118
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,13 @@ libp2p-memory-connection-limits = { version = "0.5.0", path = "misc/memory-conne
9292
libp2p-metrics = { version = "0.17.1", path = "misc/metrics" }
9393
libp2p-mplex = { version = "0.43.1", path = "muxers/mplex" }
9494
libp2p-noise = { version = "0.46.1", path = "transports/noise" }
95-
libp2p-peer-store = { version = "0.1.0", path = "misc/peer-store" }
96-
libp2p-perf = { version = "0.4.0", path = "protocols/perf" }
9795
libp2p-ping = { version = "0.47.0", path = "protocols/ping" }
9896
libp2p-plaintext = { version = "0.43.0", path = "transports/plaintext" }
9997
libp2p-pnet = { version = "0.26.0", path = "transports/pnet" }
10098
libp2p-quic = { version = "0.13.0", path = "transports/quic" }
10199
libp2p-relay = { version = "0.21.1", path = "protocols/relay" }
102100
libp2p-rendezvous = { version = "0.17.0", path = "protocols/rendezvous" }
103101
libp2p-request-response = { version = "0.29.0", path = "protocols/request-response" }
104-
libp2p-server = { version = "0.12.7", path = "misc/server" }
105-
libp2p-stream = { version = "0.4.0-alpha", path = "protocols/stream" }
106102
libp2p-swarm = { version = "0.47.0", path = "swarm" }
107103
libp2p-swarm-derive = { version = "=0.35.1", 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.
108104
libp2p-swarm-test = { version = "0.6.0", path = "swarm-test" }

misc/webrtc-utils/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.4.1
2+
- Implements `Default` trait for `Fingerprint` type.
3+
14
## 0.4.0
25

36
<!-- Update to libp2p-core v0.43.0 -->

protocols/relay/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.21.2
2+
3+
- Export StatusCode type for public use.
4+
- Fixed early return for non-relayed multiaddrs in transport to avoid unecessary processing.
5+
16
## 0.21.1
27

38
- reduce allocations by replacing `get_or_insert` with `get_or_insert_with`
@@ -32,7 +37,7 @@
3237
- Fix manual closure of relayed listener.
3338
See [PR 5491](https://github.com/libp2p/rust-libp2p/pull/5491)
3439
- Add resource limits to `CircuitReq` to be set
35-
See [PR 5493](https://github.com/libp2p/rust-libp2p/pull/5493)
40+
See [PR 5493](https://github.com/libp2p/rust-libp2p/pull/5493)
3641

3742

3843
## 0.17.2

protocols/relay/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-relay"
33
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Communications relaying for libp2p"
6-
version = "0.21.1"
6+
version = "0.21.2"
77
authors = ["Parity Technologies <admin@parity.io>", "Max Inden <mail@max-inden.de>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

transports/webrtc-websys/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 0.4.1
2+
- Implement browser-to-browser WebRTC connection establishment over circuit relay v2.
3+
- Add `SignalingBehaviour` for coordinating WebRTC signaling between browser peers.
4+
- Add `SignalingHandler` for managing WebRTC offer/answer exchange over relay connections.
5+
- Add support for automatic WebRTC connection upgrade from relay connections.
6+
- Add configurable signaling parameters (retry attempts, timeouts, ICE gathering).
7+
18
## 0.4.0
29

310
- Cut stable release.

transports/webrtc-websys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ multistream-select.workspace = true
6767
pin-project = "1.1.10"
6868
gloo-timers = { version = "0.3.0", features = ["futures"] }
6969
serde_json = "1.0.140"
70-
wasm-timer = "0.2.5"
7170
async-trait = "0.1.89"
7271
quick-protobuf = "0.8.1"
72+
web-time.workspace = true
7373

7474
[lints]
7575
workspace = true

transports/webrtc-websys/src/browser/behaviour.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use futures::{channel::oneshot, lock::Mutex, task::AtomicWaker};
99
use libp2p_core::{multiaddr::Protocol, PeerId};
1010
use libp2p_swarm::{ConnectionId, NetworkBehaviour, NotifyHandler, ToSwarm};
1111
use tracing::info;
12-
use wasm_timer::Instant;
12+
use web_time::Instant;
1313

1414
use crate::browser::{
1515
handler::{FromBehaviourEvent, SignalingHandler, ToBehaviourEvent},

transports/webrtc-websys/src/browser/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl ConnectionHandler for SignalingHandler {
260260
}
261261
Poll::Ready(Err(_)) => {
262262
tracing::error!("Signaling result channel dropped");
263-
let error = crate::Error::Signaling(
263+
let error = crate::Error::Connection(
264264
"Signaling channel dropped unexpectedly".to_string(),
265265
);
266266
return Poll::Ready(self.handle_signaling_failure(error));

0 commit comments

Comments
 (0)