[package]
name        = "gottem-cli"
version     = "0.1.8"
description = "gottem CLI: universal scraper that reliably gets the data."
readme      = "README.md"
edition.workspace = true
license.workspace = true
authors.workspace = true
rust-version.workspace = true
repository.workspace = true

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

[dependencies]
gottem-core                = { path = "../gottem-core", version = "0.1.7" }
gottem-adapters-http       = { path = "../gottem-adapters-http", version = "0.1.7" }
gottem-adapters-spider     = { path = "../gottem-adapters-spider", version = "0.1.7" }
gottem-adapters-chrome     = { path = "../gottem-adapters-chrome", version = "0.1.7", optional = true }
gottem-adapters-captcha    = { path = "../gottem-adapters-captcha", version = "0.1.7" }
gottem-adapters-browseruse = { path = "../gottem-adapters-browseruse", version = "0.1.7" }
gottem-routes-builtin      = { path = "../gottem-routes-builtin", version = "0.1.7", features = ["all"] }

clap        = { version = "4", features = ["derive", "env"] }
tokio       = { workspace = true, features = ["rt-multi-thread", "macros", "signal"] }
url         = { workspace = true }
serde_json  = { workspace = true }
anyhow      = "1"
# --remote mode: call the hosted API at api.gottem.dev.
reqwest     = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }

[features]
default = ["chrome"]
# Pulls in chromey (the chromiumoxide fork the spider stack standardized on)
# via gottem-adapters-chrome — adds ~30s to first build but enables T8 routes.
chrome  = ["dep:gottem-adapters-chrome"]

[lints.rust]
unsafe_code = "forbid"
