# 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.87"
name = "dnscrypt"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure-Rust DNSCrypt v2 client library — sync and async support."
homepage = "https://codeberg.org/hacer-bark/dnscrypt"
documentation = "https://docs.rs/dnscrypt"
readme = "README.md"
keywords = [
    "dns",
    "dnscrypt",
    "privacy",
    "resolver",
    "security",
]
categories = [
    "network-programming",
    "cryptography",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/hacer-bark/dnscrypt"

[features]
default = [
    "tokio",
    "zeroize",
    "reqwest",
]
max-security = [
    "tokio",
    "zeroize",
]
reqwest = ["dep:reqwest"]
tokio = ["dep:tokio"]
zeroize = [
    "chacha20/zeroize",
    "poly1305/zeroize",
]

[lib]
name = "dnscrypt"
path = "src/lib.rs"

[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"

[dependencies.chacha20]
version = "0.10"
features = ["xchacha"]

[dependencies.ed25519-dalek]
version = "3"

[dependencies.getrandom]
version = "0.4"

[dependencies.poly1305]
version = "0.9"

[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false

[dependencies.subtle]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "time",
    "io-util",
    "rt",
    "macros",
]
optional = true

[dependencies.x25519-dalek]
version = "3"
features = ["static_secrets"]

[dependencies.zeroize]
version = "1.8"
features = ["derive"]

[lints.clippy]
all = "deny"
cargo = "deny"
expect_used = "deny"
nursery = "deny"
panic = "deny"
pedantic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.rust]
future_incompatible = "deny"
missing_debug_implementations = "deny"
missing_docs = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unused = "deny"
warnings = "deny"
