# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "natpmp" version = "0.5.0" authors = ["fengyingcai "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "NAT-PMP client library" homepage = "https://github.com/fengyc/natpmp" documentation = "https://docs.rs/natpmp/" readme = "README.md" keywords = [ "natpmp", "rfc6886", "nat", "portmapping", ] categories = ["network-programming"] license = "MIT" repository = "https://github.com/fengyc/natpmp" [lib] name = "natpmp" path = "src/lib.rs" [[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" [dependencies.async-std] version = "1" optional = true [dependencies.async-trait] version = "0.1" [dependencies.netdev] version = "0.31.0" [dependencies.tokio] version = "1" features = ["net"] optional = true [dev-dependencies.tokio] version = "1" features = ["full"] [build-dependencies.cc] version = "1" [features] all = [ "tokio", "async-std", ] async-std = ["dep:async-std"] default = ["tokio"] tokio = ["dep:tokio"] [badges.maintenance] status = "actively-developed"