[package]
name = "stemedb-ontology"
version = "0.1.0"
edition = "2021"
description = "Domain definitions and medical extractors for Episteme"

# Inherit workspace lints
[lints]
workspace = true

[dependencies]
stemedb-core = { path = "../stemedb-core" }

# Async runtime and HTTP client
tokio = { version = "1", features = ["full"] }
reqwest = { version = "0.12", features = ["json", "blocking"] }
async-trait = "0.1"

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

# Error handling
thiserror = "1.0"

# Logging
tracing = "0.1"

# Regex for text extraction
regex = "1.10"

# Hashing
blake3 = "1.5"
hex = "0.4"

# URL encoding
urlencoding = "2.1"

# Signing
ed25519-dalek = { version = "2.1", features = ["rand_core"] }
rand = "0.8"

# Retry with backoff
backoff = { version = "0.4", features = ["tokio"] }

# HLC timestamps (must match stemedb-core's version)
uhlc = "0.7"

# CLI dependencies
clap = { version = "4", features = ["derive", "env"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
comfy-table = "7.1"

[dev-dependencies]
tokio = { version = "1", features = ["rt", "macros"] }
tempfile = "3.10"

[[bin]]
name = "pharma-ingest"
path = "src/bin/pharma_ingest.rs"

[[bin]]
name = "steme-pharma"
path = "src/bin/steme_pharma.rs"
