Skip to content

Commit bd5a2f5

Browse files
authored
chore: introduce libp2p-webrtc-websys behind webrtc-websys feature flag.
With the promotion of `libp2p-webrtc-websys` to a non-alpha/stable release, we should also re-export it as apart of `libp2p` with it being behind a `webrtc-websys` feature. Pull-Request: #5819.
1 parent 68ea5b7 commit bd5a2f5

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ resolver = "2"
7272
rust-version = "1.83.0"
7373

7474
[workspace.dependencies]
75-
libp2p = { version = "0.55.0", path = "libp2p" }
75+
libp2p = { version = "0.55.1", path = "libp2p" }
7676
libp2p-allow-block-list = { version = "0.5.0", path = "misc/allow-block-list" }
7777
libp2p-autonat = { version = "0.14.0", path = "protocols/autonat" }
7878
libp2p-connection-limits = { version = "0.5.0", path = "misc/connection-limits" }

libp2p/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.55.1
2+
- Introduce `libp2p-webrtc-websys` behind `webrtc-websys` feature flag.
3+
See [PR 5819](https://github.com/libp2p/rust-libp2p/pull/5819).
4+
15
## 0.55.0
26

37
- Raise MSRV to 1.83.0.

libp2p/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "Peer-to-peer networking library"
6-
version = "0.55.0"
6+
version = "0.55.1"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"
@@ -44,6 +44,7 @@ full = [
4444
"tokio",
4545
"uds",
4646
"wasm-bindgen",
47+
"webrtc-websys",
4748
"websocket-websys",
4849
"websocket",
4950
"webtransport-websys",
@@ -83,6 +84,7 @@ tls = ["dep:libp2p-tls"]
8384
tokio = [ "libp2p-swarm/tokio", "libp2p-mdns?/tokio", "libp2p-tcp?/tokio", "libp2p-dns?/tokio", "libp2p-quic?/tokio", "libp2p-upnp?/tokio"]
8485
uds = ["dep:libp2p-uds"]
8586
wasm-bindgen = [ "futures-timer/wasm-bindgen", "getrandom/js", "libp2p-swarm/wasm-bindgen", "libp2p-gossipsub?/wasm-bindgen"]
87+
webrtc-websys = ['dep:libp2p-webrtc-websys']
8688
websocket-websys = ["dep:libp2p-websocket-websys"]
8789
websocket = ["dep:libp2p-websocket"]
8890
webtransport-websys = ["dep:libp2p-webtransport-websys"]
@@ -117,6 +119,7 @@ libp2p-relay = { workspace = true, optional = true }
117119
libp2p-rendezvous = { workspace = true, optional = true }
118120
libp2p-request-response = { workspace = true, optional = true }
119121
libp2p-swarm = { workspace = true }
122+
libp2p-webrtc-websys = { workspace = true, optional = true }
120123
libp2p-websocket-websys = { workspace = true, optional = true }
121124
libp2p-webtransport-websys = { workspace = true, optional = true }
122125
libp2p-yamux = { workspace = true, optional = true }

libp2p/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ pub use libp2p_uds as uds;
123123
#[cfg(not(target_arch = "wasm32"))]
124124
#[doc(inline)]
125125
pub use libp2p_upnp as upnp;
126+
#[cfg(feature = "webrtc-websys")]
127+
#[doc(inline)]
128+
pub use libp2p_webrtc_websys as webrtc_websys;
126129
#[cfg(feature = "websocket")]
127130
#[cfg(not(target_arch = "wasm32"))]
128131
#[doc(inline)]

0 commit comments

Comments
 (0)