[package]
name = "anno-cli"
version = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
license = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
documentation = "https://docs.rs/anno-cli"
description = "CLI for anno: extract entities, coreference chains, relations, and PII from text, HTML, and URLs"
keywords = ["ner", "nlp", "extraction", "cli"]
categories = ["command-line-utilities", "text-processing"]

[dependencies]
anno = { path = "../anno", version = "0.9.0", default-features = false }
anno-eval = { path = "../anno-eval", version = "0.9.0" }

clap = { workspace = true, features = ["derive", "env", "wrap_help"] }
clap_complete = { workspace = true }
indicatif = { workspace = true }
toml = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
log = { workspace = true }
tracing-subscriber = { workspace = true }
ureq = { workspace = true, features = ["json"] }
chrono = { workspace = true }
dirs = { workspace = true }
regex = { workspace = true }
thiserror = { workspace = true }
glob = { workspace = true }
itertools = { workspace = true }

# Optional: only used by the `anno sampler` / `anno muxer` DX tooling (behind `eval`).
muxer = { version = "0.5", default-features = false, features = [
  "serde",
  "stochastic",
  "contextual",
], optional = true }

# Graph/KG export surface lives in `anno` behind its `graph` feature
# (which pulls in lattix transitively). No separate dep needed here.

# Document-to-text extraction (HTML stripping, readability, PDF).
deformat = { workspace = true, features = ["readability"] }
xxhash-rust = { version = "0.8.15", features = ["xxh3"] }
rayon = { workspace = true }

[features]
default = ["onnx"]
# Evaluation + muxer tooling.
eval = ["dep:muxer", "anno/analysis", "anno-eval/eval"]
eval-bias = ["eval", "anno-eval/eval-bias"]
discourse = ["anno/discourse", "anno-eval/discourse"]
instrument = []
onnx = ["anno/onnx", "anno-eval/onnx"]
candle = ["anno/candle"]
llm = ["anno/llm"]
bundled-crf-weights = ["anno/bundled-crf-weights"]
bundled-hmm-params = ["anno/bundled-hmm-params"]
graph = ["anno/graph"]
pdf = ["deformat/pdf"]
parallel = ["anno/parallel"]
chunking = ["anno/chunking"]

[dev-dependencies]
tempfile = "3"

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

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