# 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.91"
name = "daedra"
version = "0.3.2"
authors = ["DIRMACS Global Services <build@dirmacs.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-contained web search MCP server. 9 backends with automatic fallback. Works from any IP."
homepage = "https://dirmacs.github.io/daedra"
documentation = "https://docs.rs/daedra"
readme = "README.md"
keywords = [
    "mcp",
    "duckduckgo",
    "search",
    "ai",
    "cli",
]
categories = [
    "command-line-utilities",
    "web-programming",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/dirmacs/daedra"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "stdio",
    "sse",
]
sse = []
stdio = []

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

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

[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"

[[example]]
name = "caching"
path = "examples/caching.rs"

[[example]]
name = "mcp_server"
path = "examples/mcp_server.rs"

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

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

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

[[bench]]
name = "search_benchmark"
path = "benches/search_benchmark.rs"
harness = false

[dependencies.anyhow]
version = "1.0.100"

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

[dependencies.axum]
version = "0.8.7"
features = ["macros"]

[dependencies.backoff]
version = "0.4.0"
features = ["tokio"]

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

[dependencies.clap]
version = "4.5.53"
features = [
    "derive",
    "env",
    "color",
]

[dependencies.colored]
version = "3.0.0"

[dependencies.dom_smoothie]
version = "0.17"

[dependencies.futures]
version = "0.3.31"

[dependencies.governor]
version = "0.10.2"

[dependencies.htmd]
version = "0.5.0"

[dependencies.html-escape]
version = "0.2.13"

[dependencies.html5ever]
version = "0.36.1"

[dependencies.infer]
version = "0.19"

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.moka]
version = "0.12.11"
features = ["future"]

[dependencies.pdf-extract]
version = "0.10"

[dependencies.rayon]
version = "1.11.0"

[dependencies.regex]
version = "1.12.2"

[dependencies.reqwest]
version = "0.12.24"
features = [
    "json",
    "gzip",
    "brotli",
    "rustls-tls",
]
default-features = false

[dependencies.scraper]
version = "0.24.0"

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

[dependencies.serde_json]
version = "1.0.145"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = [
    "full",
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "signal",
]

[dependencies.tower]
version = "0.5.2"

[dependencies.tower-http]
version = "0.6.7"
features = [
    "cors",
    "trace",
]

[dependencies.tracing]
version = "0.1.43"

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

[dependencies.url]
version = "2.5.7"

[dependencies.urlencoding]
version = "2.1.3"

[dependencies.uuid]
version = "1.19.0"
features = [
    "v4",
    "serde",
]

[dev-dependencies.assert_cmd]
version = "2.1.1"

[dev-dependencies.criterion]
version = "0.8.0"
features = ["async_tokio"]

[dev-dependencies.predicates]
version = "3.1.3"

[dev-dependencies.tempfile]
version = "3.23.0"

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

[dev-dependencies.wiremock]
version = "0.6.5"

[profile.dev]
opt-level = 0
debug = 2

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
