Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b97086b
Implements basic WebRTC signaling process. Establishes a browser tran…
elijahhampton Apr 8, 2025
481fa79
Removes unwrap() in place of mapping to proper Errors. Adds utility f…
elijahhampton Apr 10, 2025
5ae98d7
Draft implementation of circuit relay v2. Integration of circuit rela…
elijahhampton Apr 15, 2025
fe1768e
Move browser impl to dedicated folder
elijahhampton Apr 17, 2025
11a7d7e
Fixes errors in signaling, adds example, moves logic from transport …
elijahhampton Jun 10, 2025
efecd2c
Removes unused functions. Restore visibility of vars, fns in /relay
elijahhampton Jun 10, 2025
7fe90ec
Adds signaling config and retry mechanism for the signaling handler.
elijahhampton Jun 10, 2025
24462b4
Adds delay for retries. Adds helper functions to signaling protocol h…
elijahhampton Jun 12, 2025
cf70c7c
Fixes race condition between two peers for signaling initiation. Prev…
elijahhampton Sep 21, 2025
1712673
signaling process successful through transport.
elijahhampton Oct 26, 2025
dc5fbe5
Conn and signaling complete
elijahhampton Oct 27, 2025
b0fe047
Adds Noop HandlerType for established webrtc connections. Implements …
elijahhampton Oct 29, 2025
59fc671
fmt, clippy
elijahhampton Oct 30, 2025
3920354
Removes prost, prost-build for quick-protobuf. Refactors signaling.rs…
elijahhampton Oct 30, 2025
80ff806
Update CHANGELOG for webrtc_utils, relay and webrtc-websys. Removes l…
elijahhampton Oct 30, 2025
86fec05
Update workspace dependency version to match Cargo.toml and CHANGELOG
elijahhampton Oct 30, 2025
ec9f8e2
fix /protocols/relay, consolidates changes into 0.21.1
elijahhampton Oct 30, 2025
de6d0d4
chore: retrigger CI
elijahhampton Oct 30, 2025
a9d98ac
Rebase complete
elijahhampton Oct 30, 2025
2c4d425
Complete clippy,fmt after rebase
elijahhampton Oct 30, 2025
a4c3a9a
Fixes workspace Cargo.toml, infra-doc links and missing webrtc exampl…
elijahhampton Oct 31, 2025
741f19c
Fix signaling message intra-doc link
elijahhampton Oct 31, 2025
12518a5
remove intra doc link for SignalingMessage
elijahhampton Oct 31, 2025
f8ab04b
Fixes clippy(beta) warnings
elijahhampton Oct 31, 2025
4ca5f44
Revert clippy changes in protocols/
elijahhampton Oct 31, 2025
29117a9
Revert protocols/kad/src/behaviour.rs
elijahhampton Nov 3, 2025
8392f45
chore: trigger CI
elijahhampton Nov 5, 2025
efa4737
Merge branch 'master' of github.com:elijahhampton/rust-libp2p into fe…
elijahhampton Nov 5, 2025
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
345 changes: 265 additions & 80 deletions Cargo.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ members = [
"core",
"examples/autonat",
"examples/autonatv2",
"examples/browser-to-browser-webrtc",
"examples/browser-webrtc",
"examples/chat",
"examples/dcutr",
Expand Down Expand Up @@ -110,8 +111,8 @@ libp2p-tls = { version = "0.6.2", path = "transports/tls" }
libp2p-uds = { version = "0.43.0", path = "transports/uds" }
libp2p-upnp = { version = "0.6.0", path = "protocols/upnp" }
libp2p-webrtc = { version = "0.9.0-alpha.2", path = "transports/webrtc" }
libp2p-webrtc-utils = { version = "0.4.0", path = "misc/webrtc-utils" }
libp2p-webrtc-websys = { version = "0.4.0", path = "transports/webrtc-websys" }
libp2p-webrtc-utils = { version = "0.4.1", path = "misc/webrtc-utils" }
libp2p-webrtc-websys = { version = "0.4.1", path = "transports/webrtc-websys" }
libp2p-websocket = { version = "0.45.2", path = "transports/websocket" }
libp2p-websocket-websys = { version = "0.5.0", path = "transports/websocket-websys" }
libp2p-webtransport-websys = { version = "0.5.1", path = "transports/webtransport-websys" }
Expand Down
38 changes: 38 additions & 0 deletions examples/browser-to-browser-webrtc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[package]
authors = ["Elijah Hampton <[email protected]>"]
description = "Example use of WebRTC transport in a browser wasm environment"
edition.workspace = true
license = "MIT"
name = "browser-to-browser-webrtc-example"
publish = false
repository = "https://github.com/libp2p/rust-libp2p"
rust-version = { workspace = true }
version = "0.1.0"

[package.metadata.release]
release = false

[lib]
crate-type = ["cdylib"]

[dependencies]
futures = { workspace = true }
console_error_panic_hook = "0.1"
tracing = { workspace = true }
libp2p-swarm = { workspace = true }
libp2p = { path = "../../libp2p", features = ["relay", "noise", "yamux", "ed25519", "macros", "identify", "ping", "wasm-bindgen"] }
libp2p-identity = { version = "0.2" }
libp2p-webrtc-utils = { version = "0.3"}
libp2p-relay = { workspace = true}
libp2p-core = { workspace = true}
libp2p-webrtc-websys = { workspace = true }
libp2p-websocket-websys = { workspace = true }
tracing-wasm = "0.2"
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = ["RtcPeerConnection", "RtcDataChannel", "RtcConfiguration", "Window", "Navigator", "MediaDevices"] }
js-sys = "0.3"

[package.metadata.wasm-pack]
"wasm-pack" = ["cdylib"]
434 changes: 434 additions & 0 deletions examples/browser-to-browser-webrtc/src/lib.rs

Large diffs are not rendered by default.

Loading
Loading