8f472a0443
- Integrate etcd-client for distributed coordination and leader election - Add remote client macros with proper formatting for all services - Implement RequestMetrics for tracking RPC performance and errors - Add rate limiting mechanism across all service endpoints - Create ElectionRequest and ElectionResult message types for leader election - Add role management with primary/replica switching capabilities - Implement health checker with automatic failover detection - Add repository count metrics for cluster monitoring - Update Cargo.toml with etcd-client and dashmap dependencies - Modify RepoEntry to include read_only flag for replica handling - Implement should_accept_election logic to prevent duplicate elections - Add RoleChangedEvent handling for cluster role updates
48 lines
1.7 KiB
TOML
48 lines
1.7 KiB
TOML
[package]
|
|
name = "gitks"
|
|
version = "1.0.0"
|
|
edition = "2024"
|
|
authors = ["gitks contributors"]
|
|
description = "A gRPC-accessible Git repository operations library for bare repositories"
|
|
repository = ""
|
|
readme = ""
|
|
homepage = ""
|
|
license = "PolyForm-Noncommercial-1.0.0"
|
|
keywords = ["git", "grpc", "bare-repository", "gix"]
|
|
categories = ["development-tools"]
|
|
documentation = ""
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
name = "gitks"
|
|
[dependencies]
|
|
moka = { version = "0.12", default-features = false, features = ["sync"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sha2 = "0.11"
|
|
gix = { version = "0.84", default-features = false, features = ["serde", "blame", "sha256", "sha1", "tracing", "merge", "max-performance-safe", "revision"] }
|
|
gix-archive = { version = "0.33", features = ["sha256","sha1","document-features"] }
|
|
duct = { version = "1", features = [] }
|
|
tracing = { version = "0.1", features = ["log"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "process", "io-util", "sync", "net"] }
|
|
tokio-stream = { version = "0.1", features = ["full"] }
|
|
thiserror = { version = "2", features = [] }
|
|
prost = "0.14"
|
|
prost-types = "0.14"
|
|
tonic = { version = "0.14", features = ["transport"] }
|
|
tonic-prost = "0.14"
|
|
tempfile = "3"
|
|
dotenvy = "0.15"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
ractor = { version = "0.15.13", features = ["cluster","tokio_runtime","monitors","message_span_propogation","async-trait"]}
|
|
ractor_cluster = { version = "0.15.13", features = ["async-trait"] }
|
|
async-trait = "0.1.89"
|
|
etcd-client = { version = "0.18.0", features = ["tls"] }
|
|
dashmap = "6"
|
|
[[bin]]
|
|
name = "gitks"
|
|
path = "main.rs"
|
|
|
|
[build-dependencies]
|
|
tonic-prost-build = "0.14"
|