e72866db8d
- Add etcd-client dependency for distributed configuration storage - Implement EtcdConfig with priority: etcd > environment variables > defaults - Add ServiceRegistry for service registration with lease keep-alive - Integrate etcd-based service discovery for appks gRPC connections - Add service watcher for real-time service instance updates - Migrate Redis configuration from single URL to cluster node list - Update Dockerfile with default IMKS_HOST and IMKS_PORT environment variables - Add etcd bootstrap configuration through environment variables - Implement Redis cluster URL building with optional authentication
58 lines
1.7 KiB
TOML
58 lines
1.7 KiB
TOML
[package]
|
|
name = "imks"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
name = "imks"
|
|
|
|
[[bin]]
|
|
path = "main.rs"
|
|
name = "imks"
|
|
|
|
|
|
[dependencies]
|
|
tonic = { version = "0.14", features = ["tls-ring"] }
|
|
prost = "0.14"
|
|
prost-types = "0.14"
|
|
tonic-build = "0.14"
|
|
tonic-health = "0.14"
|
|
tonic-prost = "0.14"
|
|
tokio = { version = "1", features = ["full"] }
|
|
actix-web = { version = "4", features = [] }
|
|
actix-ws = { version = "0.4", features = [] }
|
|
actix-rt = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = { version = "1" }
|
|
sqlx = { version = "0.9", features = ["postgres", "runtime-tokio", "chrono", "uuid", "json", "migrate"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1", features = ["v4", "v7", "serde"] }
|
|
base64 = "0.22"
|
|
rand = "0.9"
|
|
wtransport = "0.7"
|
|
dashmap = "6"
|
|
thiserror = "2"
|
|
etcd-client = { version = "0.18", features = ["tls"] }
|
|
tokio-stream = { version = "0.1", features = ["sync"] }
|
|
async-trait = "0.1"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "fmt", "registry"] }
|
|
opentelemetry = { version = "0.32", features = ["trace", "metrics", "logs"] }
|
|
opentelemetry_sdk = { version = "0.32", features = ["trace", "metrics", "logs", "rt-tokio"] }
|
|
opentelemetry-otlp = { version = "0.32", features = ["trace", "metrics", "logs", "grpc-tonic", "http-proto", "tls-ring"] }
|
|
tracing-opentelemetry = "0.33"
|
|
opentelemetry-appender-tracing = "0.32"
|
|
opentelemetry-prometheus = "0.32"
|
|
prometheus = "0.14"
|
|
fred = { version = "10", features = ["subscriber-client"] }
|
|
async-nats = "0.38"
|
|
futures-util = "0.3"
|
|
jsonwebtoken = "9"
|
|
arc-swap = "1"
|
|
|
|
|
|
[build-dependencies]
|
|
tonic-prost-build = "0.14"
|
|
walkdir = "2.5" |