# 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"
rust-version = "1.88"
name = "duckduckgo-search-cli"
version = "0.7.3"
authors = ["comandoaguiar"]
build = false
exclude = [
    ".serena/",
    ".serena/**",
    "logs/",
    "logs/**",
    "CLAUDE.md",
    "docs_prd/",
    "docs_prd/**",
    "docs_rules/",
    "docs_rules/**",
    ".claude/",
    ".claude/**",
    "projeto_duckduckgo-search-cli.md",
    ".github/",
    "tests/fixtures/",
    "*.log",
    "skill/",
    "skill/**",
    "graphrag.sqlite",
    "graphrag.sqlite-shm",
    "graphrag.sqlite-wal",
    "gaps.md",
    ".ingest-queue.sqlite",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "duckduckgo-search-cli"
description = "CLI in Rust to search DuckDuckGo via pure HTTP, with structured output for LLM consumption."
homepage = "https://github.com/daniloaguiarbr/duckduckgo-search-cli"
documentation = "https://docs.rs/duckduckgo-search-cli"
readme = "README.md"
keywords = [
    "search",
    "duckduckgo",
    "cli",
    "ai-agent",
    "llm",
]
categories = [
    "command-line-utilities",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/daniloaguiarbr/duckduckgo-search-cli"

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

[badges.maintenance]
status = "actively-developed"

[features]
chrome = [
    "chromiumoxide",
    "tempfile",
    "futures",
]
console = ["dep:console-subscriber"]
default = []

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

[[bin]]
name = "duckduckgo-search-cli"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

[dependencies.blake3]
version = "1"

[dependencies.chromiumoxide]
version = "0.7"
features = ["tokio-runtime"]
optional = true

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

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

[dependencies.clap_complete]
version = "4"

[dependencies.console-subscriber]
version = "0.4"
optional = true

[dependencies.dirs]
version = "5"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.indicatif]
version = "0.18"

[dependencies.rand]
version = "0.10"

[dependencies.regex]
version = "1"

[dependencies.scraper]
version = "0.20"

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

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3.47"

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

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"
features = ["release_max_level_info"]

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

[dependencies.url]
version = "2"

[dependencies.urlencoding]
version = "2"

[dependencies.wreq]
version = "6.0.0-rc"
features = [
    "tokio-rt",
    "webpki-roots",
    "cookies",
    "gzip",
    "brotli",
    "deflate",
    "zstd",
    "socks",
    "form",
    "query",
]
default-features = false

[dependencies.wreq-util]
version = "3.0.0-rc"

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

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

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

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

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

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

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = ["Win32_System_Console"]

[lints.clippy]
doc_markdown = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "deny"

[lints.rust]
improper_ctypes = "deny"
improper_ctypes_definitions = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(loom)",
    "cfg(tokio_unstable)",
]

[profile.dev.package."*"]
opt-level = 2

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