[package]
edition = "2024"
name = "external-ip"
version = "7.0.0"
authors = ["Dario Meloni <mellon85@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Asynchronous library to retrieve the system external IP
"""
readme = "README.md"
license = "MIT"
repository = "https://github.com/mellon85/external-ip"
[features]
default = ["discover_igd"]
discover_igd = ["igd"]
[lib]
name = "external_ip"
path = "src/lib.rs"
[[test]]
name = "all_sources"
path = "tests/all_sources.rs"
[[test]]
name = "dns_sources"
path = "tests/dns_sources.rs"
[[test]]
name = "http_sources"
path = "tests/http_sources.rs"
[[test]]
name = "igd_sources"
path = "tests/igd_sources.rs"
[dependencies.futures]
version = "0.3"
[dependencies.hickory-resolver]
version = "0.26"
[dependencies.igd]
version = "0.12.1"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.reqwest]
version = "0.13"
[dependencies.thiserror]
version = "2"
[dev-dependencies.mockall]
version = "0.14"
[dev-dependencies.tokio-test]
version = "0.4"