# 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 = "2021"
name = "seer-core"
version = "0.26.0"
authors = ["Zac Roach"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for Seer domain name utilities"
readme = "README.md"
keywords = [
    "whois",
    "rdap",
    "dns",
    "domain",
    "networking",
]
categories = [
    "network-programming",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/TheZacillac/seer"

[features]
default = []
otel = [
    "dep:tracing-opentelemetry",
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
]

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

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.colored]
version = "2"

[dependencies.dirs]
version = "5"

[dependencies.futures]
version = "0.3"

[dependencies.hickory-resolver]
version = "0.26"
features = ["dnssec-ring"]

[dependencies.idna]
version = "1"

[dependencies.native-tls]
version = "0.2"

[dependencies.once_cell]
version = "1"

[dependencies.opentelemetry]
version = "0.31"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31"
features = ["grpc-tonic"]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "stream",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "time",
    "sync",
    "io-util",
    "signal",
]

[dependencies.tokio-native-tls]
version = "0.3"

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"

[dependencies.tracing-opentelemetry]
version = "0.32"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[dependencies.url]
version = "2"

[dependencies.x509-parser]
version = "0.16"

[dev-dependencies.tokio-test]
version = "0.4"

[lints.clippy]
manual_let_else = "warn"
semicolon_if_nothing_returned = "warn"
unwrap_used = "warn"

[lints.rust]
unsafe_code = "warn"
unused_qualifications = "warn"
