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
somewhere in the dependency tree.default-features = false - runtime-tokio default = 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.