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 whenever libp2p-nat is added without default-features = false somewhere in the dependency tree.

tokio default

Enables tokio, aio_tokio of igd-next, tokio of natpmp

Affects task::port_forwarding_task

async-std

Enables async-std, aio_async_std of igd-next, async-std of natpmp

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