osdns 0.2.0

Safe, transactional control of operating-system DNS configuration
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 = "2024"
rust-version = "1.95"
name = "osdns"
version = "0.2.0"
build = false
exclude = [
    "tools/",
    ".github/",
]
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.27"

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1"

[target.'cfg(target_os = "linux")'.dependencies.inotify]
version = "0.11"
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.netlink-packet-core]
version = "0.9"

[target.'cfg(target_os = "linux")'.dependencies.netlink-packet-route]
version = "0.33"

[target.'cfg(target_os = "linux")'.dependencies.netlink-sys]
version = "0.9"

[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-link]
version = "0.100"

[target.'cfg(target_os = "windows")'.dependencies.windows-registry]
version = "0.100"

[target.'cfg(target_os = "windows")'.dependencies.windows-result]
version = "0.100"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"
unsafe_op_in_unsafe_fn = "deny"