[badges.maintenance]
status = "actively-developed"
[build-dependencies.cc]
version = "1"
[dependencies.async-std]
optional = true
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.netdev]
version = "0.31.0"
[dependencies.tokio]
features = ["net"]
optional = true
version = "1"
[dev-dependencies.tokio]
features = ["full"]
version = "1"
[[example]]
name = "async-udp-async-std"
path = "examples/async_udp_asyncstd.rs"
required-features = ["async-std"]
[[example]]
name = "async-udp-tokio"
path = "examples/async_udp_tokio.rs"
required-features = ["tokio"]
[[example]]
name = "tcp-mapping"
path = "examples/tcp_mapping.rs"
[[example]]
name = "udp-mapping"
path = "examples/udp_mapping.rs"
[features]
all = ["tokio", "async-std"]
async-std = ["dep:async-std"]
default = ["tokio"]
tokio = ["dep:tokio"]
[lib]
name = "natpmp"
path = "src/lib.rs"
[package]
authors = ["fengyingcai <fengyc.work@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["network-programming"]
description = "NAT-PMP client library"
documentation = "https://docs.rs/natpmp/"
edition = "2021"
homepage = "https://github.com/fengyc/natpmp"
keywords = ["natpmp", "rfc6886", "nat", "portmapping"]
license = "MIT"
name = "natpmp"
readme = "README.md"
repository = "https://github.com/fengyc/natpmp"
version = "0.5.0"