# 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 = "igd-next" version = "0.15.1" authors = [ "Darius C", "Simon Bernier St-Pierre ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Internet Gateway Protocol client" homepage = "https://github.com/dariusc93/rust-igd" readme = "README.md" keywords = [ "igd", "upnp", "tokio", "async-std", ] license = "MIT" repository = "https://github.com/dariusc93/rust-igd" [package.metadata.docs.rs] all-features = true [lib] name = "igd_next" path = "src/lib.rs" [[example]] name = "add_any_port" path = "examples/add_any_port.rs" [[example]] name = "add_port" path = "examples/add_port.rs" [[example]] name = "add_remove" path = "examples/add_remove.rs" [[example]] name = "aio_astd" path = "examples/aio_astd.rs" required-features = ["aio_async_std"] [[example]] name = "aio_tokio" path = "examples/aio_tokio.rs" required-features = ["aio_tokio"] [[example]] name = "external_ip" path = "examples/external_ip.rs" [[example]] name = "remove_port" path = "examples/remove_port.rs" [dependencies.async-std] version = "1" optional = true [dependencies.async-trait] version = "0.1.72" optional = true [dependencies.attohttpc] version = "0.24" default-features = false [dependencies.bytes] version = "1" optional = true [dependencies.futures] version = "0.3" optional = true [dependencies.http] version = "1" optional = true [dependencies.http-body-util] version = "0.1" optional = true [dependencies.hyper] version = "1" features = [ "client", "http1", "http2", ] optional = true default-features = false [dependencies.hyper-util] version = "0.1" features = [ "client", "client-legacy", "http1", "http2", ] optional = true default-features = false [dependencies.log] version = "0.4" [dependencies.rand] version = "0.8" [dependencies.surf] version = "2.3.2" optional = true default-features = false [dependencies.tokio] version = "1" features = ["net"] optional = true [dependencies.url] version = "2" [dependencies.xmltree] version = "0.10" [dev-dependencies.async-std] version = "1" features = ["attributes"] [dev-dependencies.simplelog] version = "0.12" [dev-dependencies.tokio] version = "1" features = ["full"] [features] aio_async_std = [ "futures", "async-std", "surf/h1-client-rustls", "bytes", "http", "async-trait", ] aio_tokio = [ "futures", "tokio", "hyper", "hyper-util", "http-body-util", "bytes", "http", "async-trait", ] default = []