[package]
edition = "2024"
name = "iphost"
version = "0.3.3"
authors = ["Menhera.org Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stable hostname resolution library that supports storing a hostname in either a static IP addresses or an FQDN."
homepage = "https://github.com/metastable-void/iphost"
readme = "README.md"
license = "Apache-2.0 OR MPL-2.0"
repository = "https://github.com/metastable-void/iphost"
[features]
broadcast = ["dep:tokio"]
default = [
"serde",
"tracing",
"broadcast",
]
serde = ["dep:serde"]
tracing = ["dep:tracing"]
[lib]
name = "iphost"
path = "src/lib.rs"
[[example]]
name = "iphost-resolve"
path = "examples/iphost-resolve.rs"
[[example]]
name = "monitor-iphost"
path = "examples/monitor-iphost.rs"
[dependencies.dropcatch]
version = "0.3"
[dependencies.fqdn]
version = "0.5"
features = [
"domain-label-length-limited-to-63",
"domain-name-length-limited-to-255",
"domain-name-without-special-chars",
"domain-label-cannot-start-or-end-with-hyphen",
"punycode",
]
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.tokio]
version = "1"
features = ["sync"]
optional = true
default-features = false
[dependencies.tracing]
version = "0.1"
optional = true