Skip to content

Commit d440f06

Browse files
authored
refactor: Make prometheus features push and process optional to get rid of openssl (#433)
* refactor: Make prometheus deps optional Signed-off-by: Xuanwo <github@xuanwo.io> * Remove push and process Signed-off-by: Xuanwo <github@xuanwo.io> --------- Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent b12f95e commit d440f06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ description = "The Rust language implementation of TiKV client."
99
edition = "2021"
1010

1111
[features]
12-
default = ["prometheus/process"]
12+
default = ["prometheus"]
13+
prometheus = ["prometheus/push", "prometheus/process"]
1314
# Enable integration tests with a running TiKV and PD instance.
1415
# Use $PD_ADDRS, comma separated, to set the addresses the tests use.
1516
integration-tests = []
@@ -33,7 +34,7 @@ futures = { version = "0.3" }
3334
lazy_static = "1"
3435
log = "0.4"
3536
pin-project = "1"
36-
prometheus = { version = "0.13", features = ["push"], default-features = false }
37+
prometheus = { version = "0.13", default-features = false }
3738
prost = "0.12"
3839
rand = "0.8"
3940
regex = "1"

0 commit comments

Comments
 (0)