Cargo Features

[dependencies]
p2p2 = { version = "0.0.1", default-features = false, features = ["runtime-tokio", "tcp", "udp"] }
default = runtime-tokio, tcp, udp

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

runtime-tokio default = tokio

Enables net of tokio

tcp default

Affects p2p2::tcp

udp default

Affects p2p2::udp

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 runtime-tokio