flnet

Crates.ioflnet
lib.rsflnet
version0.7.2
sourcesrc
created_at2022-04-14 17:15:13.250237
updated_at2024-08-23 07:26:43.267511
descriptionNetwork setup and communication
homepagehttps://fledg.re
repositoryhttps://github.com/ineiti/fledger
max_upload_size
id567649
size154,197
Linus Gasser (ineiti)

documentation

README

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.

Commit count: 223

cargo fmt