[package]
name = "llmhosts"
version = "0.5.1"
edition = "2021"
publish = false
readme = "README.md"

[lib]
name = "_llmhosts"
crate-type = ["cdylib", "rlib"]

[dependencies]
pyo3 = { workspace = true }
_llmhosts_core = { path = "llmhosts_core", package = "llmhosts_core" }
_llmhosts_gpu = { path = "llmhosts_gpu", package = "llmhosts_gpu" }
_relay_core = { path = "relay_core", package = "relay_core" }
_router_core = { path = "router_core", package = "router_core" }

[workspace]
members = ["llmhosts_core", "llmhosts_gpu", "relay_core", "router_core"]
resolver = "2"

[workspace.dependencies]
pyo3 = { version = "0.28", features = ["extension-module"] }
pyo3-async-runtimes = { version = "0.28", features = ["tokio-runtime"] }
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
tracing = "0.1"
matrixmultiply = "0.3"

[features]
default = []
cuda = ["_llmhosts_core/cuda"]
wgpu = ["_llmhosts_core/wgpu"]

[profile.release]
strip = "symbols"
lto = true
codegen-units = 1
