[package]
edition = "2024"
name = "setdns"
version = "0.1.0"
build = false
exclude = [
"/test-runner",
"/AGENTS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Temporarily apply and restore system DNS configuration, including global and split DNS."
documentation = "https://docs.rs/setdns"
readme = "README.md"
keywords = [
"dns",
"resolver",
"split-dns",
"systemd-resolved",
"nrpt",
]
categories = [
"network-programming",
"os",
]
license = "MIT"
repository = "https://github.com/AsakuraMizu/setdns"
[lib]
name = "setdns"
path = "src/lib.rs"
[dependencies.addr]
version = "0.15"
features = ["std"]
default-features = false
[dependencies.base64]
version = "0.22"
[dependencies.log]
version = "0.4"
[dependencies.thiserror]
version = "2"
[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "linux")'.dependencies.serde]
version = "1"
default-features = false
[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5"
features = [
"async-io",
"blocking-api",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.9"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8"
[target.'cfg(target_os = "macos")'.dependencies.system-configuration]
version = "0.7"
[target.'cfg(target_os = "macos")'.dependencies.system-configuration-sys]
version = "0.6"