Cargo Features

libp2p-rs = { version = "0.3.0", default-features = false, features = ["tokio", "rt-tokio", "rt-async-std", "dns-async-std", "dns-tokio", "floodsub-async-std", "floodsub-tokio", "infoserver", "exporter", "kad-async-std", "kad-tokio", "mdns-async-std", "mdns-tokio", "mplex", "noise", "plaintext", "runtime", "secio", "swarm-async-std", "swarm-tokio", "tcp-async-std", "tcp-tokio", "websocket-async-std", "websocket-tokio", "yamux"] }
default = dns-async-std, exporter, floodsub-async-std, infoserver, kad-async-std, mdns-async-std, mplex, noise, plaintext, rt-async-std, secio, swarm-async-std, tcp-async-std, websocket-async-std, yamux

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

tokio = dns-tokio, floodsub-tokio, kad-tokio, mdns-tokio, mplex, noise, plaintext, rt-tokio, secio, swarm-tokio, tcp-tokio, websocket-tokio, yamux
rt-tokio tokio?

Enables tokio of libp2prs-runtime

rt-async-std default

Enables async-std of libp2prs-runtime

dns-async-std default

Enables async-std of libp2prs-dns

dns-tokio tokio?

Enables tokio of libp2prs-dns

floodsub-async-std default

Enables async-std of libp2prs-floodsub

floodsub-tokio tokio?

Enables tokio of libp2prs-floodsub

infoserver default = libp2prs-infoserver
exporter default = libp2prs-exporter
kad-async-std default

Enables async-std of libp2prs-kad

kad-tokio tokio?

Enables tokio of libp2prs-kad

mdns-async-std default

Enables async-std of libp2prs-mdns

mdns-tokio tokio?

Enables tokio of libp2prs-mdns

mplex default tokio? = libp2prs-mplex
noise default tokio? = libp2prs-noise
plaintext default tokio? = libp2prs-plaintext
runtime = libp2prs-runtime
secio default tokio? = libp2prs-secio
swarm-async-std default

Enables async-std of libp2prs-swarm

swarm-tokio tokio?

Enables tokio of libp2prs-swarm

tcp-async-std default

Enables async-std of libp2prs-tcp

tcp-tokio tokio?

Enables tokio of libp2prs-tcp

websocket-async-std default

Enables async-std of libp2prs-websocket

websocket-tokio tokio?

Enables tokio of libp2prs-websocket

yamux default tokio? = libp2prs-yamux

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

libp2prs-runtime rt-async-std rt-tokio? runtime?
libp2prs-yamux yamux
libp2prs-mplex mplex
libp2prs-secio secio
libp2prs-plaintext plaintext
libp2prs-noise noise
libp2prs-floodsub floodsub-async-std floodsub-tokio?
libp2prs-mdns mdns-async-std mdns-tokio?
libp2prs-tcp tcp-async-std tcp-tokio?
libp2prs-dns dns-async-std dns-tokio?
libp2prs-websocket websocket-async-std websocket-tokio?
libp2prs-kad kad-async-std kad-tokio?
libp2prs-infoserver infoserver
libp2prs-exporter exporter