Cargo Features
[dependencies]
libp2p-nat = { version = "0.4.0", default-features = false, features = ["tokio", "async-std", "nat_pmp_fallback"] }
- default = tokio
-
The
tokio
feature is set by default wheneverlibp2p-nat
is added without
somewhere in the dependency tree.default-features = false - tokio default
-
Enables tokio, aio_tokio of igd-next ^0.14, tokio of natpmp ^0.4
Affects
task::port_forwarding_task
… - async-std
-
Enables async-std, aio_async_std of igd-next ^0.14, async-std of natpmp ^0.4
Affects
task::port_forwarding_task
… - nat_pmp_fallback = natpmp
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.
- natpmp not ios async-std? nat_pmp_fallback? tokio
-
Enables natpmp ^0.4