[workspace]
resolver = "2"
members = [
    "crates/fiberlb-types",
    "crates/fiberlb-api",
    "crates/fiberlb-server",
]

[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["FlashDNS Team"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/example/fiberlb"

[workspace.dependencies]
# Internal crates
fiberlb-types = { path = "crates/fiberlb-types" }
fiberlb-api = { path = "crates/fiberlb-api" }

# Async runtime
tokio = { version = "1", features = ["full"] }

# gRPC
tonic = "0.12"
tonic-health = "0.12"
prost = "0.13"
prost-types = "0.13"

# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"

# Utilities
uuid = { version = "1", features = ["v4", "serde"] }
thiserror = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
clap = { version = "4", features = ["derive", "env"] }
dashmap = "6"

# Metrics
metrics = "0.23"
metrics-exporter-prometheus = "0.15"

# Networking (for proxy)
hyper = { version = "1", features = ["full"] }
hyper-util = { version = "0.1", features = ["full"] }

[workspace.dependencies.tonic-build]
version = "0.12"
