ip-discovery 0.3.0

A lightweight, high-performance library for detecting public IP addresses via DNS, HTTP, and STUN protocols
Documentation
# 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"
rust-version = "1.85"
name = "ip-discovery"
version = "0.3.0"
authors = ["zer0horizon"]
build = false
exclude = [
    "target/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight, high-performance library for detecting public IP addresses via DNS, HTTP, and STUN protocols"
homepage = "https://github.com/zer0horizon/ip-discovery"
documentation = "https://docs.rs/ip-discovery"
readme = "README.md"
keywords = [
    "ip",
    "public-ip",
    "stun",
    "dns",
    "network",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/zer0horizon/ip-discovery"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.dist]
dist = false

[features]
all = [
    "dns",
    "http",
    "stun",
]
default = [
    "dns",
    "stun",
]
dns = []
http = ["dep:reqwest"]
native-tls = ["reqwest?/native-tls"]
stun = []

[lib]
name = "ip_discovery"
path = "src/lib.rs"

[[example]]
name = "benchmark"
path = "examples/benchmark.rs"

[[example]]
name = "custom_providers"
path = "examples/custom_providers.rs"

[[example]]
name = "simple"
path = "examples/simple.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "resolver"
path = "tests/resolver.rs"

[[test]]
name = "unit"
path = "tests/unit.rs"

[dependencies.getrandom]
version = "0.4"
default-features = false

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
optional = true
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "net",
    "time",
]

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "macros",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[profile.dist]
lto = "thin"
inherits = "release"