Cargo Features
[dependencies]
happy-eyeballs = { version = "0.2.1", default-features = false, features = ["std-net", "async-std", "tokio"] }
- default = std-net
-
The
std-net
feature is set by default wheneverhappy-eyeballs
is added without
somewhere in the dependency tree.default-features = false - std-net default = libc, polling, socket2
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.