# 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 = "portmapper" version = "0.1.0" authors = ["n0 team"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Portmapping utilities" readme = "README.md" keywords = [ "portmapping", "pmp", "pcp", "upnp", ] license = "MIT OR Apache-2.0" repository = "https://github.com/n0-computer/iroh" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "iroh_docsrs", ] [lib] name = "portmapper" path = "src/lib.rs" [dependencies.anyhow] version = "1" [dependencies.base64] version = "0.22.1" [dependencies.bytes] version = "1.7" [dependencies.derive_more] version = "1.0.0" features = [ "debug", "display", "from", "try_into", "deref", ] [dependencies.futures-lite] version = "2.3" [dependencies.futures-util] version = "0.3.25" [dependencies.igd-next] version = "0.15.1" features = ["aio_tokio"] [dependencies.iroh-metrics] version = "0.28.0" default-features = false [dependencies.libc] version = "0.2.139" [dependencies.netwatch] version = "0.1.0" [dependencies.num_enum] version = "0.7" [dependencies.rand] version = "0.8" [dependencies.serde] version = "1" features = [ "derive", "rc", ] [dependencies.smallvec] version = "1.11.1" [dependencies.socket2] version = "0.5.3" [dependencies.thiserror] version = "1" [dependencies.time] version = "0.3.20" [dependencies.tokio] version = "1" features = [ "io-util", "macros", "sync", "rt", "net", "fs", "io-std", "signal", "process", ] [dependencies.tokio-util] version = "0.7.12" features = [ "io-util", "io", "codec", "rt", ] [dependencies.tracing] version = "0.1" [dependencies.url] version = "2.4" features = ["serde"] [dev-dependencies.ntest] version = "0.9" [dev-dependencies.rand_chacha] version = "0.3.1" [dev-dependencies.tokio] version = "1" features = [ "io-util", "sync", "rt", "net", "fs", "macros", "time", "test-util", ] [features] default = ["metrics"] metrics = ["iroh-metrics/metrics"] [lints.clippy] unused-async = "warn" [lints.rust] missing_debug_implementations = "warn" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(iroh_docsrs)"]