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