Skip to content

Commit

Permalink
feat: make prometheus dep optional
Browse files Browse the repository at this point in the history
Signed-off-by: John Lewis <[email protected]>
  • Loading branch information
johnbchron committed Dec 1, 2024
1 parent 59f13b5 commit 2d75f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2021"

[features]
default = ["prometheus"]
prometheus = ["prometheus/push", "prometheus/process"]
prometheus = ["dep:prometheus", "prometheus/push", "prometheus/process"]
# Enable integration tests with a running TiKV and PD instance.
# Use $PD_ADDRS, comma separated, to set the addresses the tests use.
integration-tests = []
Expand All @@ -34,7 +34,7 @@ futures = { version = "0.3" }
lazy_static = "1"
log = "0.4"
pin-project = "1"
prometheus = { version = "0.13", default-features = false }
prometheus = { version = "0.13", default-features = false, optional = true }
prost = "0.12"
rand = "0.8"
regex = "1"
Expand Down

0 comments on commit 2d75f2d

Please sign in to comment.