[package]
name = "creditservice-server"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
description = "Reference credit-control server integrated with Photon auth"

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

[dependencies]
creditservice-types = { workspace = true }
creditservice-proto = { workspace = true }
creditservice-api = { workspace = true }
photon-auth-client = { workspace = true }
photon-config = { workspace = true }
photon-runtime = { workspace = true }
photon-state = { workspace = true }
chainfire-client = { path = "../../../chainfire/chainfire-client" }

tokio = { workspace = true }
tonic = { workspace = true }
tonic-health = { workspace = true }

tracing = { workspace = true }
tracing-subscriber = { workspace = true }
clap = { workspace = true }
anyhow = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }

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