# 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 = "2018" rust-version = "1.52.0" name = "public-ip" version = "0.2.2" authors = ["avitex "] include = ["src/**/*", "examples/**/*", "README.md", "LICENSE", "Cargo.toml"] description = "Find the public IP address of a device" homepage = "https://github.com/avitex/rust-public-ip" documentation = "https://docs.rs/public-ip" keywords = ["public", "external", "ip", "async"] categories = ["network-programming"] license = "MIT" repository = "https://github.com/avitex/rust-public-ip" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies.dns-lookup] version = "1" optional = true [dependencies.futures-core] version = "0.3" default-features = false [dependencies.futures-util] version = "0.3" features = ["alloc"] default-features = false [dependencies.http] version = "0.2" optional = true [dependencies.hyper] version = "0.14" features = ["client", "http1"] optional = true [dependencies.hyper-system-resolver] version = "0.5" optional = true default-features = false [dependencies.pin-project-lite] version = "0.2" [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" optional = true [dependencies.tracing] version = "0.1" [dependencies.tracing-futures] version = "0.2" features = ["futures-03"] [dependencies.trust-dns-client] version = "0.20" optional = true [dependencies.trust-dns-proto] version = "0.20" optional = true default-features = false [dev-dependencies.tokio] version = "~1" features = ["macros"] [features] all-providers = ["google", "opendns", "whatismyipaddress-com", "ipify-org"] default = ["all-providers", "tokio-dns-resolver", "tokio-http-resolver"] dns-resolver = ["trust-dns-proto"] google = [] http-resolver = ["http", "hyper", "hyper-system-resolver", "dns-lookup"] ipify-org = [] opendns = [] tokio-dns-resolver = ["dns-resolver", "tokio", "trust-dns-client", "trust-dns-proto/tokio-runtime"] tokio-http-resolver = ["http-resolver", "tokio", "hyper/runtime"] whatismyipaddress-com = []