[package]
name = "web-server"
version = "0.3.0"
edition.workspace = true
license.workspace = true
rust-version.workspace = true
description = "IdeA headless HTTP/WebSocket driving adapter, reusable by desktop and server binaries."

[lib]
name = "web_server"
path = "src/lib.rs"

[[bin]]
name = "idea-serve"
path = "src/bin/idea-serve.rs"

[dependencies]
backend = { workspace = true }
application = { workspace = true }
domain = { workspace = true }
tokio = { workspace = true, features = ["io-std", "rt", "net"] }
serde = { workspace = true }
serde_json = { workspace = true }
uuid = { workspace = true }
base64 = "0.22"
bytes = "1.11"
cookie = "0.18"
http = "1.4"
http-body-util = "0.1"

[features]
vector-http = ["backend/vector-http"]
vector-onnx = ["backend/vector-onnx"]
