Cargo Features
[dependencies]
mwc-libp2p-tcp = { version = "0.27.1", default-features = false, features = ["tokio", "async-io"] }
- default = async-io
-
The
async-io
feature is set by default whenevermwc-libp2p-tcp
is added without
somewhere in the dependency tree.default-features = false - tokio = if-addrs, tokio-crate
-
Affects
mwc-libp2p-tcp::TokioTcpConfig
,provider::tokio
… - async-io default = async-io-crate, if-watch
-
Affects
mwc-libp2p-tcp::TcpConfig
,provider::async_io
…
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.
- async-io-crate async-io
-
Enables async-io ^1.2.0
- if-watch async-io
-
Enables if-watch ^0.1.8
- if-addrs tokio?
-
Enables if-addrs ^0.6.4
- tokio-crate tokio?
-
Enables tokio