# 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"
name = "duckduckgo-cli"
version = "0.1.3"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Agent-first DuckDuckGo search CLI"
readme = false
license = "MIT"
repository = "https://github.com/ysm-dev/duckduckgo-cli"
resolver = "2"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/duckduckgo-v{ version }-{ target }.tar.gz"
bin-dir = "bin"
pkg-fmt = "tgz"

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

[[bin]]
name = "ddg"
path = "src/bin/ddg.rs"

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.clap_complete]
version = "4.5"

[dependencies.clap_complete_nushell]
version = "4.6"

[dependencies.duckduckgo-core]
version = "0.1.0"

[dependencies.is-terminal]
version = "0.4"

[dependencies.jsonc-parser]
version = "0.32"
features = ["serde"]

[dependencies.owo-colors]
version = "4.2"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.terminal_size]
version = "0.4"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "macros",
    "parsing",
    "serde",
]

[dependencies.tokio]
version = "1.48"
features = [
    "fs",
    "macros",
    "rt",
    "time",
]

[dependencies.unicode-width]
version = "0.2"

[dependencies.url]
version = "2.5"

[dependencies.wreq]
version = "5.3"
features = [
    "cookies",
    "gzip",
    "socks",
]

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

[dev-dependencies.httpmock]
version = "0.8"

[dev-dependencies.insta]
version = "1.47"

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

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

[build-dependencies.clap]
version = "4.5"
features = ["derive"]

[build-dependencies.clap_mangen]
version = "0.3"
