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 wheneverrustp2p
is added without
somewhere in the dependency tree.default-features = false - 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.