[package] name = "libp2p-nat" version = "0.4.0" edition = "2021" license = "Apache-2.0 OR MIT" description = "(WIP) Implementation of port forwarding for libp2p" repository = "https://github.com/dariusc93/libp2p-nat" readme = "README.md" keywords = ["libp2p", "p2p", "networking"] authors = ["Darius Clark"] exclude = [".gitignore"] [features] default = ["tokio"] tokio = ["dep:tokio", "igd-next/aio_tokio", "natpmp/tokio"] async-std = ["dep:async-std", "igd-next/aio_async_std", "natpmp/async-std"] nat_pmp_fallback = ["natpmp"] [dependencies] libp2p = { version = "0.53" } futures = "0.3" igd-next = { version = "0.14", default-features = false } void = "1" tokio = { version = "1", optional = true, features = ["full"] } async-std = { version = "1", optional = true } log = "0.4" anyhow = "1" futures-timer = "3.0" thiserror = "1" [target.'cfg(not(target_os = "ios"))'.dependencies] natpmp = { version = "0.4", default-features = false, optional = true} [dev-dependencies] libp2p = { version = "0.53", features = ["full"] } clap = { version = "4.3", features = ["derive"] } tokio = { version = "1", features = ["full"] } env_logger = "0.10"