pub async fn development_transport(
    keypair: Keypair
) -> Result<Boxed<(PeerId, StreamMuxerBox)>>
👎Deprecated: Use libp2p::SwarmBuilder instead.
Available on non-WebAssembly and crate feature tcp and crate feature dns and crate feature websocket and crate feature noise and crate feature yamux and crate feature async-std only.
Expand description

Builds a Transport based on TCP/IP that supports the most commonly-used features of libp2p:

  • DNS resolution.
  • Noise protocol encryption.
  • Websockets.
  • Yamux for substream multiplexing.

All async I/O of the transport is based on async-std.

Note: This Transport is not suitable for production usage, as its implementation reserves the right to support additional protocols or remove deprecated protocols.