4 releases (2 breaking)

0.7.1 Oct 26, 2022
0.7.0 Oct 26, 2022
0.6.0 Jul 5, 2022
0.5.0 Apr 14, 2022

#1 in #fledger

34 downloads per month
Used in 4 crates

MIT/Apache

275KB
6K SLoC

WebRTC data communication for libc and wasm

Build Status Crates.io

Documentation | Website

FLNet is used in fledger to communicate between browsers. It uses the WebRTC protocol and a signalling-server with websockets. The outstanding feature of this implementation is that it works both for WASM and libc with the same interface. This allows to write the core code once, and then re-use it for both WASM and libc.

How to use it

To include flnet in your code, add the following line to your Cargo.toml file:

# For the common code
flnet = "0.7"
# For the wasm implementation
flnet = {features = ["wasm"], version = "0.7"}
# For the libc implementation
flnet = {features = ["libc"], version = "0.7"}

The libc feature also offers a signalling-server and a websocket-server.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~12–33MB
~515K SLoC