Cargo Features

[dependencies]
mwc-libp2p = { version = "0.35.2", default-features = false, features = ["deflate", "dns", "floodsub", "identify", "kad", "gossipsub", "mdns", "mplex", "noise", "ping", "plaintext", "pnet", "request-response", "tcp-async-io", "tcp-tokio", "uds", "wasm-ext", "wasm-ext-websocket", "websocket", "yamux", "secp256k1"] }
default = deflate, dns, floodsub, gossipsub, identify, kad, mdns, mplex, noise, ping, plaintext, pnet, request-response, secp256k1, tcp-async-io, uds, wasm-ext, websocket, yamux

These default features are set whenever mwc-libp2p is added without default-features = false somewhere in the dependency tree.

deflate default = libp2p-deflate
dns default = libp2p-dns
floodsub default = libp2p-floodsub
identify default = libp2p-identify
kad default = libp2p-kad
gossipsub default = libp2p-gossipsub
mdns default = libp2p-mdns
mplex default = libp2p-mplex

Affects mwc-libp2p::build_development_transport, mwc-libp2p::build_tcp_ws_noise_mplex_yamux, mwc-libp2p::build_tcp_ws_pnet_noise_mplex_yamux

noise default = mwc-libp2p-noise

Affects mwc-libp2p::build_development_transport, mwc-libp2p::build_tcp_ws_noise_mplex_yamux, mwc-libp2p::build_tcp_ws_pnet_noise_mplex_yamux

ping default = libp2p-ping
plaintext default = libp2p-plaintext
pnet default = libp2p-pnet

Affects mwc-libp2p::build_tcp_ws_pnet_noise_mplex_yamux

request-response default = libp2p-request-response
tcp-async-io default = libp2p-tcp

Enables async-io of libp2p-tcp ^0.27.1

Affects mwc-libp2p::build_development_transport, mwc-libp2p::build_tcp_ws_noise_mplex_yamux, mwc-libp2p::build_tcp_ws_pnet_noise_mplex_yamux

tcp-tokio = libp2p-tcp

Enables tokio of libp2p-tcp ^0.27.1

Affects mwc-libp2p::build_development_transport, mwc-libp2p::build_tcp_ws_noise_mplex_yamux, mwc-libp2p::build_tcp_ws_pnet_noise_mplex_yamux

uds default = libp2p-uds
wasm-ext default wasm-ext-websocket? = libp2p-wasm-ext
wasm-ext-websocket = wasm-ext

Enables websocket of libp2p-wasm-ext ^0.27.0

websocket default = libp2p-websocket

Affects mwc-libp2p::build_development_transport, mwc-libp2p::build_tcp_ws_noise_mplex_yamux, mwc-libp2p::build_tcp_ws_pnet_noise_mplex_yamux

yamux default = libp2p-yamux

Affects mwc-libp2p::build_development_transport, mwc-libp2p::build_tcp_ws_noise_mplex_yamux, mwc-libp2p::build_tcp_ws_pnet_noise_mplex_yamux

secp256k1 default

Enables secp256k1 of libp2p-core ^0.27.1

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

libp2p-floodsub floodsub

Enables libp2p-floodsub ^0.27.0

libp2p-gossipsub gossipsub

Enables libp2p-gossipsub ^0.28.0

libp2p-identify identify

Enables libp2p-identify ^0.27.0

libp2p-kad kad

Enables libp2p-kad ^0.28.1

libp2p-mplex mplex

Enables libp2p-mplex ^0.27.1

mwc-libp2p-noise noise
libp2p-ping ping

Enables libp2p-ping ^0.27.0

libp2p-plaintext plaintext

Enables libp2p-plaintext ^0.27.1

libp2p-pnet pnet

Enables libp2p-pnet ^0.20.0

libp2p-request-response request-response

Enables libp2p-request-response ^0.9.1

libp2p-uds uds

Enables libp2p-uds ^0.27.0

libp2p-wasm-ext wasm-ext wasm-ext-websocket?

Enables libp2p-wasm-ext ^0.27.0

libp2p-yamux yamux

Enables libp2p-yamux ^0.30.1

libp2p-deflate not emscripten wasi unknown deflate

Enables libp2p-deflate ^0.27.1

libp2p-dns not emscripten wasi unknown dns

Enables libp2p-dns ^0.27.0

libp2p-mdns not emscripten wasi unknown mdns

Enables libp2p-mdns ^0.28.1

libp2p-websocket not emscripten wasi unknown websocket

Enables libp2p-websocket ^0.28.0

libp2p-tcp not emscripten wasi unknown tcp-async-io tcp-tokio?

Enables libp2p-tcp ^0.27.1