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

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.

tokio use-tokio
async-std use-async-std?
async-io use-async-std?
futures-util use-async-std?
async-scoped use-async-std? use-tokio