mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-02 14:12:18 +00:00
Starting with nightly-2023-09-10, the `[lints]` section in `Cargo.toml` files is stable. Together with workspace inheritance, this can be used to declare all lints we want to enforce in a single place. Resolves: #4484. Pull-Request: #4575.
Rust-libp2p Browser-Server WebRTC Example
This example demonstrates how to use the libp2p-webrtc-websys
transport library in a browser to ping the WebRTC Server.
It uses wasm-pack to build the project for use in the browser.
Running the example
- Build the client library:
wasm-pack build --target web --out-dir static
- Start the server:
cargo run
- Open the URL printed in the terminal