[package]
name = "makima"
version = "0.1.0"
edition = "2024"

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

[dependencies]
# ML/Audio (existing)
# Local fork with streaming API exposed (diarize_streaming method)
parakeet-rs = { path = "../vendor/parakeet-rs", features = ["sortformer"] }
symphonia = { version = "0.5", features = ["mp3", "aac", "flac", "ogg", "vorbis", "wav", "pcm"] }
ort = "2.0.0-rc.10"
tokenizers = "0.21"
hf-hub = "0.4"
ndarray = "0.16"

# Candle ML framework (Qwen3-TTS native inference)
candle-core = "0.8"
candle-nn = "0.8"
candle-transformers = "0.8"
safetensors = "0.4"

# Web server
axum = { version = "0.8", features = ["ws", "multipart"] }
tokio = { version = "1.0", features = ["full", "signal", "process"] }
tower-http = { version = "0.6", features = ["cors", "trace"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"
futures = "0.3"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
bytes = "1.0"
uuid = { version = "1.0", features = ["v4", "serde"] }

# CLI/Daemon specific
clap = { version = "4.4", features = ["derive", "env"] }
config = "0.14"
tokio-tungstenite = { version = "0.24", features = ["native-tls"] }
rusqlite = { version = "0.32", features = ["bundled"] }
backoff = { version = "0.4", features = ["tokio"] }
hostname = "0.4"
shell-escape = "0.1"
dirs = "5.0"
portable-pty = "0.8"
async-trait = "0.1"

# TUI and fuzzy search
fuzzy-matcher = "0.3"

# OpenAPI
utoipa = { version = "5", features = ["axum_extras", "uuid", "chrono"] }
utoipa-swagger-ui = { version = "9", features = ["axum"] }

# Error handling
thiserror = "2.0"
anyhow = "1.0"

# Concurrent data structures
dashmap = "6.0"

# Database
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "uuid", "chrono", "json"] }
chrono = { version = "0.4", features = ["serde"] }

# HTTP client for LLM API
reqwest = { version = "0.12", features = ["json"] }

# Lazy statics
once_cell = "1.19"

# Unix signal handling
nix = { version = "0.29", features = ["signal", "process"] }

# Regex for text parsing
regex = "1.10"

# Cryptographic hashing for API keys
sha2 = "0.10"
rand = { version = "0.8", features = ["std", "std_rng"] }
base64 = "0.22"
hex = "0.4"

# JWT authentication
jsonwebtoken = "9"

# JQ for JSON transformation
jaq-interpret = "1.5"
jaq-parse = "1.0"
jaq-core = "1.5"
jaq-std = "1.6"
indexmap = "2.0"
ahash = "0.8"

# TUI
ratatui = "0.29"
crossterm = "0.28"

# Compression
flate2 = "1.0"

[dev-dependencies]
tempfile = "3.10"
