Show the crate…
1 unstable release
0.27.0 | Mar 15, 2021 |
---|
#34 in #tetcore
Used in tet-libp2p
475KB
8K
SLoC
Implementation of the 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 rust-libp2p, as opposed to inside of rust-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.
Dependencies
~11–17MB
~312K SLoC