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

[[bin]]
name = "makima-server"
path = "src/bin/server.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"

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

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

# Error handling
thiserror = "2.0"
anyhow = "1.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"

# 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"
