[package]
name = "k8shost-server"
version = "0.1.0"
edition = "2021"

[[bin]]
name = "k8shost-server"
path = "src/main.rs"

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

[dependencies]
k8shost-types = { path = "../k8shost-types" }
k8shost-proto = { path = "../k8shost-proto" }
tokio = { workspace = true }
tokio-stream = "0.1"
tonic = { workspace = true }
prost = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
anyhow = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
metrics = { workspace = true }
metrics-exporter-prometheus = { workspace = true }
uuid = { version = "1", features = ["v4", "serde"] }
flaredb-client = { path = "../../../flaredb/crates/flaredb-client" }
chainfire-client = { path = "../../../chainfire/chainfire-client" }
iam-client = { path = "../../../iam/crates/iam-client" }
iam-service-auth = { path = "../../../iam/crates/iam-service-auth" }
iam-types = { path = "../../../iam/crates/iam-types" }
creditservice-client = { path = "../../../creditservice/creditservice-client" }
fiberlb-api = { path = "../../../fiberlb/crates/fiberlb-api" }
flashdns-api = { path = "../../../flashdns/crates/flashdns-api" }
prismnet-api = { path = "../../../prismnet/crates/prismnet-api" }
chrono = { workspace = true }
clap = { workspace = true }
config = { workspace = true }
toml = { workspace = true }
sha2 = "0.10"

# REST API dependencies
axum = "0.8"

[dev-dependencies]
plasmavmc-server = { path = "../../../plasmavmc/crates/plasmavmc-server" }
plasmavmc-api = { path = "../../../plasmavmc/crates/plasmavmc-api" }
plasmavmc-hypervisor = { path = "../../../plasmavmc/crates/plasmavmc-hypervisor" }
plasmavmc-kvm = { path = "../../../plasmavmc/crates/plasmavmc-kvm" }
prismnet-server = { path = "../../../prismnet/crates/prismnet-server" }
prismnet-api = { path = "../../../prismnet/crates/prismnet-api" }
flaredb-proto = { path = "../../../flaredb/crates/flaredb-proto" }
creditservice-api = { path = "../../../creditservice/crates/creditservice-api" }
creditservice-proto = { path = "../../../creditservice/crates/creditservice-proto" }
tempfile = "3"
