-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
63 lines (54 loc) · 1.95 KB
/
Cargo.toml
File metadata and controls
63 lines (54 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[package]
name = "klag-exporter"
version = "0.1.23"
edition = "2021"
description = "High-performance Kafka consumer group lag exporter with offset and time lag metrics"
authors = ["Krzysztof Grajek"]
license = "MIT"
repository = "https://github.com/softwaremill/klag-exporter"
homepage = "https://github.com/softwaremill/klag-exporter"
documentation = "https://docs.rs/klag-exporter"
readme = "README.md"
keywords = ["kafka", "prometheus", "metrics", "lag", "exporter"]
categories = ["development-tools::profiling"]
exclude = ["test-stack/", "docs/", ".github/", ".claude/"]
[dependencies]
tokio = { version = "1", features = ["full"] }
rdkafka = { version = "0.36", features = ["cmake-build", "ssl", "sasl", "zstd", "libz", "external-lz4"] }
axum = "0.7"
prometheus = "0.14"
opentelemetry = { version = "0.27", features = ["metrics"] }
opentelemetry-otlp = { version = "0.27", features = ["metrics", "grpc-tonic"] }
opentelemetry_sdk = { version = "0.27", features = ["metrics", "rt-tokio"] }
serde = { version = "1", features = ["derive"] }
toml = "0.8"
config = "0.14"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tikv-jemallocator = { version = "0.6", optional = true }
regex = "1"
dashmap = "6"
thiserror = "1"
anyhow = "1"
humantime-serde = "1"
clap = { version = "4", features = ["derive"] }
futures = "0.3"
tower = "0.4"
async-trait = "0.1"
# Kubernetes leader election (optional)
kube = { version = "0.99", features = ["client", "runtime", "rustls-tls"], optional = true }
k8s-openapi = { version = "0.24", features = ["v1_32"], optional = true }
kube-lease-manager = { version = "0.8", optional = true }
[features]
default = ["jemalloc"]
jemalloc = ["tikv-jemallocator"]
kubernetes = ["kube", "k8s-openapi", "kube-lease-manager"]
[dev-dependencies]
testcontainers = "0.15"
testcontainers-modules = { version = "0.3", features = ["kafka"] }
tokio-test = "0.4"
tempfile = "3"
serde_json = "1"
[profile.release]
lto = true
codegen-units = 1