Cargo Features
[dependencies]
rust-p2p-core = { version = "0.1.10", default-features = false, features = ["use-tokio", "use-async-std"] }
- default = use-tokio
-
The
use-tokio
feature is set by default wheneverrust-p2p-core
is added without
somewhere in the dependency tree.default-features = false - use-tokio default = tokio
-
Enables use-tokio of async-scoped
Affects
task::use_tokio
… - use-async-std = async-io, async-std, futures-util
-
Enables use-async-std of async-scoped
async-scoped:
Verify package.metadata.docs.rs when updating
Affects
async_compat::spawn
,tcp::use_async_std
,task::use_async_std
…
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.