gitdataai/libs/git/Cargo.toml
ZhenYi 10836730ed
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions
feat: add health endpoints and Prometheus metrics to git-hook and email-worker
Health monitoring:
- gitserver: /health endpoint on port 8021 (DB + Redis ping)
- git-hook: hyper health server on port 8083 with /health
- email-worker: hyper health server on port 8084 with /health
- K8s probes updated to httpGet for all three services

Metrics (via /metrics endpoint):
- git-hook: hook_tasks_total/success/failed/locked/retried/exhausted,
  hook_sync_branches/tags_changed_total
- email: email_queued/consumed/sent/failed_total,
  email_validation_skipped/build_errors/send_attempts_total
2026-04-25 23:45:48 +08:00

56 lines
1.7 KiB
TOML

[package]
name = "git"
version.workspace = true
edition.workspace = true
authors.workspace = true
description.workspace = true
repository.workspace = true
readme.workspace = true
homepage.workspace = true
license.workspace = true
keywords.workspace = true
categories.workspace = true
documentation.workspace = true
[lib]
path = "lib.rs"
name = "git"
[dependencies]
git2 = { workspace = true, features = [] }
git2-hooks = { workspace = true, features = [] }
git2-ext = { workspace = true, features = [] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tar = { workspace = true }
flate2 = { workspace = true }
zip = { workspace = true }
globset = { workspace = true }
models = { workspace = true }
db = { workspace = true }
deadpool-redis = { workspace = true, features = ["rt_tokio_1", "cluster-async", "cluster"] }
config = { workspace = true }
tokio = { workspace = true, features = ["sync", "rt", "process"] }
tracing = { workspace = true }
tokio-util = { workspace = true }
qdrant-client = { workspace = true }
redis = { workspace = true }
uuid = { workspace = true, features = ["v4"] }
sea-orm = { workspace = true, features = ["macros"] }
chrono = { workspace = true }
sysinfo = { workspace = true }
num_cpus = { workspace = true }
futures = { workspace = true }
russh = { workspace = true, features = ["legacy-ed25519-pkcs8-parser"] }
anyhow = { workspace = true }
base64 = { workspace = true }
sha1 = { workspace = true }
sha2 = { workspace = true }
futures-util = { workspace = true }
async-stream = { workspace = true }
ssh-key = { workspace = true }
actix-web = { workspace = true }
hex = "0.4.3"
reqwest = { workspace = true }
metrics = { workspace = true }
[lints]
workspace = true