wasm-ext

Crates.iowasm-ext
lib.rswasm-ext
version0.27.0
sourcesrc
created_at2021-03-11 07:19:16.502181
updated_at2021-03-12 05:57:29.920251
descriptionAllows passing in an external transport in a WASM environment
homepagehttps://core.tetcoin.org
repositoryhttps://github.com/tetcoin/tetsy-libp2p
max_upload_size
id367160
size29,989
Marlon Hanks (marlonhanks)

documentation

https://docs.rs/wasm-ext

README

wasm-ext

Implementation of the tetsy-libp2p Transport trait for external transports.

This Transport is used in the context of WASM to allow delegating the transport mechanism to the code that uses tetsy-libp2p, as opposed to inside of tetsy-libp2p itself.

Note: This only allows transports that produce a raw stream with the remote. You couldn't, for example, pass an implementation QUIC.

Usage

Call new() with a JavaScript object that implements the interface described in the ffi module.

Commit count: 1458

cargo fmt