# 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.88"
name = "ch4"
version = "0.20.0"
authors = ["Rafael Buchbinder <rafi@rbk.io>"]
build = "build.rs"
exclude = [
    ".git*",
    "Makefile.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DNS Client Tool"
readme = "README.md"
keywords = [
    "dns",
    "dig",
    "resolver",
]
categories = ["command-line-utilities"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/r-bk/ch4"

[features]
default = ["net-tokio"]
net-async-std = [
    "rsdns/net-async-std",
    "async-std",
]
net-smol = [
    "rsdns/net-smol",
    "smol",
]
net-std = ["rsdns/net-std"]
net-tokio = [
    "rsdns/net-tokio",
    "tokio",
]
socket2 = ["rsdns/socket2"]

[[bin]]
name = "ch4"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0.102"

[dependencies.async-std]
version = "1"
features = ["attributes"]
optional = true

[dependencies.base64]
version = "0.22.0"

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.chrono]
version = "0.4.44"

[dependencies.clap]
version = "4.6.1"
features = ["derive"]

[dependencies.rsdns]
version = "0.23.0"
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.smol]
version = "2"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
]
optional = true

[build-dependencies.built]
version = "0.8.0"
features = [
    "git2",
    "chrono",
    "semver",
    "dependency-tree",
]

[build-dependencies.prettyplease]
version = "0.2"

[build-dependencies.sysinfo]
version = "0.38.4"

[build-dependencies.zyn]
version = "0.5.4"

[target."cfg(windows)".dependencies.windows]
version = "0.62.2"
features = [
    "Win32_Foundation",
    "Win32_NetworkManagement_IpHelper",
    "Win32_NetworkManagement_Ndis",
    "Win32_Networking_WinSock",
]
