[package]
edition = "2024"
rust-version = "1.89"
name = "osdns"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe, transactional control of operating-system DNS configuration"
homepage = "https://github.com/orielhaim/osdns"
documentation = "https://docs.rs/osdns"
readme = "README.md"
keywords = [
"dns",
"network",
"system",
"configuration",
]
categories = [
"network-programming",
"os",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/orielhaim/osdns"
[package.metadata.docs.rs]
all-features = true
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
]
[features]
default = []
test-util = []
tracing = ["dep:tracing"]
[lib]
name = "osdns"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "enforce"
path = "examples/enforce.rs"
[[example]]
name = "split_dns"
path = "examples/split_dns.rs"
[[example]]
name = "watch"
path = "examples/watch.rs"
[[test]]
name = "backend_matrix"
path = "tests/backend_matrix.rs"
[[test]]
name = "config"
path = "tests/config.rs"
[[test]]
name = "enforce"
path = "tests/enforce.rs"
[[test]]
name = "engine"
path = "tests/engine.rs"
[[test]]
name = "journal"
path = "tests/journal.rs"
[[test]]
name = "linux"
path = "tests/linux.rs"
[[test]]
name = "macos"
path = "tests/macos.rs"
[[test]]
name = "multi_process"
path = "tests/multi_process.rs"
[[test]]
name = "multi_resource"
path = "tests/multi_resource.rs"
[[test]]
name = "normalize"
path = "tests/normalize.rs"
[[test]]
name = "ownership"
path = "tests/ownership.rs"
[[test]]
name = "performance"
path = "tests/performance.rs"
[[test]]
name = "races"
path = "tests/races.rs"
[[test]]
name = "recovery"
path = "tests/recovery.rs"
[[test]]
name = "semantics"
path = "tests/semantics.rs"
[[test]]
name = "state_machine"
path = "tests/state_machine.rs"
[[test]]
name = "watch_storm"
path = "tests/watch_storm.rs"
[[test]]
name = "windows"
path = "tests/windows.rs"
[[bench]]
name = "engine"
path = "benches/engine.rs"
harness = false
required-features = ["test-util"]
[dependencies.atomic-write-file]
version = "0.3"
[dependencies.idna]
version = "1"
[dependencies.resolv-conf]
version = "0.7"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.uuid]
version = "1"
features = [
"v4",
"v5",
"serde",
]
[dev-dependencies.criterion]
version = "0.8.2"
[dev-dependencies.rstest]
version = "0.26.1"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[target.'cfg(target_os = "linux")'.dependencies.inotify]
version = "0.11"
[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10.1"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8.7"
[target.'cfg(target_os = "macos")'.dependencies.notify]
version = "8.2.0"
features = ["macos_fsevent"]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.system-configuration]
version = "0.8.0"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_NetworkManagement_Dns",
"Win32_NetworkManagement_IpHelper",
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
"Win32_Security",
"Win32_System_Registry",
"Win32_System_Threading",
]
[target.'cfg(target_os = "windows")'.dependencies.windows-registry]
version = "0.6"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "deny"
unsafe_op_in_unsafe_fn = "deny"