Cargo Features

[dependencies]
rustp2p = { version = "0.1.18", default-features = false, features = ["aes-gcm", "chacha20-poly1305", "use-tokio", "use-async-std"] }
default = use-tokio

The use-tokio feature is set by default whenever rustp2p is added without default-features = false somewhere in the dependency tree.

aes-gcm = ring

Affects cipher::aes_gcm, config::PipeConfig.encryption

chacha20-poly1305 = ring

Affects config::PipeConfig.encryption

use-tokio default = tokio

Enables use-tokio of rust-p2p-core

use-async-std = async-io, async-std, futures-util

Enables use-async-std of rust-p2p-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.

tokio use-tokio
async-std use-async-std?
async-io use-async-std?
futures-util use-async-std?
ring aes-gcm? chacha20-poly1305?