# 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.75"
name = "gdelt"
version = "0.1.0"
build = false
exclude = [
    "dist/",
    "documentation/",
    ".github/",
    "target/",
    "*.tar.gz",
    "*.zip",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI for GDELT Project - optimized for agentic usage with local data caching"
readme = "README.md"
keywords = [
    "gdelt",
    "news",
    "analytics",
    "cli",
    "agent",
]
categories = [
    "command-line-utilities",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/neul-labs/gdelt-cli"

[features]
default = []
full = ["mcp"]
mcp = [
    "dep:rmcp",
    "dep:schemars",
]

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.async-stream]
version = "0.3"

[dependencies.atty]
version = "0.2"

[dependencies.bytes]
version = "1.11.1"

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

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
    "string",
    "wrap_help",
]

[dependencies.clap_complete]
version = "4"

[dependencies.colored]
version = "2"

[dependencies.comfy-table]
version = "7"

[dependencies.console]
version = "0.15"

[dependencies.csv]
version = "1.3"

[dependencies.derive_more]
version = "1"
features = [
    "display",
    "from",
]

[dependencies.directories]
version = "5"

[dependencies.dirs]
version = "6.0.0"

[dependencies.duckdb]
version = "1.0"
features = ["bundled"]

[dependencies.flate2]
version = "1.0"

[dependencies.futures]
version = "0.3"

[dependencies.futures-util]
version = "0.3"

[dependencies.humantime]
version = "2"

[dependencies.humantime-serde]
version = "1"

[dependencies.indicatif]
version = "0.17"
features = ["tokio"]

[dependencies.once_cell]
version = "1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.regex]
version = "1"

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

[dependencies.rmcp]
version = "0.1"
features = ["server"]
optional = true

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]

[dependencies.schemars]
version = "0.8"
optional = true

[dependencies.scraper]
version = "0.18"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tabled]
version = "0.16"
features = ["ansi"]

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2"

[dependencies.zip]
version = "2.2"

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

[profile.dev]
opt-level = 1

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