Skip to content

Commit 751176e

Browse files
committed
fix: make prometheus dep optional
1 parent 59f13b5 commit 751176e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2021"
1010

1111
[features]
1212
default = ["prometheus"]
13-
prometheus = ["prometheus/push", "prometheus/process"]
13+
prometheus = ["dep:prometheus", "prometheus/push", "prometheus/process"]
1414
# Enable integration tests with a running TiKV and PD instance.
1515
# Use $PD_ADDRS, comma separated, to set the addresses the tests use.
1616
integration-tests = []
@@ -34,7 +34,7 @@ futures = { version = "0.3" }
3434
lazy_static = "1"
3535
log = "0.4"
3636
pin-project = "1"
37-
prometheus = { version = "0.13", default-features = false }
37+
prometheus = { version = "0.13", default-features = false, optional = true }
3838
prost = "0.12"
3939
rand = "0.8"
4040
regex = "1"

0 commit comments

Comments
 (0)