Cargo Features
[dependencies]
mwc-libp2p = { version = "0.35.3", 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
somewhere in the dependency tree.default-features = false - deflate default = mwc-libp2p-deflate
- dns default = mwc-libp2p-dns
- floodsub default = mwc-libp2p-floodsub
- identify default = mwc-libp2p-identify
- kad default = mwc-libp2p-kad
- gossipsub default = mwc-libp2p-gossipsub
- mdns default = mwc-libp2p-mdns
- mplex default = mwc-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 = mwc-libp2p-ping
- plaintext default = mwc-libp2p-plaintext
- pnet default = mwc-libp2p-pnet
-
Affects
mwc-libp2p::build_tcp_ws_pnet_noise_mplex_yamux
… - request-response default = mwc-libp2p-request-response
- tcp-async-io default = mwc-libp2p-tcp
-
Enables async-io of mwc-libp2p-tcp
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 = mwc-libp2p-tcp
-
Enables tokio of mwc-libp2p-tcp
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 = mwc-libp2p-uds
- wasm-ext default wasm-ext-websocket? = mwc-libp2p-wasm-ext
- wasm-ext-websocket = wasm-ext
-
Enables websocket of mwc-libp2p-wasm-ext
- websocket default = mwc-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 = mwc-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 mwc-libp2p-core
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.
- mwc-libp2p-floodsub floodsub
- mwc-libp2p-gossipsub gossipsub
- mwc-libp2p-identify identify
- mwc-libp2p-kad kad
- mwc-libp2p-mplex mplex
- mwc-libp2p-noise noise
- mwc-libp2p-ping ping
- mwc-libp2p-plaintext plaintext
- mwc-libp2p-pnet pnet
- mwc-libp2p-request-response request-response
- mwc-libp2p-uds uds
- mwc-libp2p-wasm-ext wasm-ext wasm-ext-websocket?
- mwc-libp2p-yamux yamux
- mwc-libp2p-deflate not emscripten wasi unknown deflate
- mwc-libp2p-dns not emscripten wasi unknown dns
- mwc-libp2p-mdns not emscripten wasi unknown mdns
- mwc-libp2p-websocket not emscripten wasi unknown websocket
- mwc-libp2p-tcp not emscripten wasi unknown tcp-async-io tcp-tokio?