[package]
name = "iam-server"
version.workspace = true
edition.workspace = true
description = "IAM server binary"
license.workspace = true

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

[dependencies]
iam-types = { path = "../iam-types" }
iam-store = { path = "../iam-store" }
iam-authn = { path = "../iam-authn" }
iam-authz = { path = "../iam-authz" }
iam-api = { path = "../iam-api" }
iam-client = { path = "../iam-client" }
chainfire-client = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tokio-stream = { workspace = true, features = ["net"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
tonic = { workspace = true }
tonic-health = { workspace = true }
toml = { workspace = true }
clap = { workspace = true }
metrics = { workspace = true }
metrics-exporter-prometheus = { workspace = true }

# REST API dependencies
axum = "0.8"
uuid = { version = "1.11", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }

[dev-dependencies]
tokio = { workspace = true, features = ["full", "test-util"] }
