Skip to content

Commit

Permalink
refactor: Make prometheus features push and process optional to g…
Browse files Browse the repository at this point in the history
…et rid of openssl (tikv#433)

* refactor: Make prometheus deps optional

Signed-off-by: Xuanwo <[email protected]>

* Remove push and process

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored and bxq2011hust committed Mar 19, 2024
1 parent 0a13687 commit b8bb324
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ description = "The Rust language implementation of TiKV client."
edition = "2021"

[features]
default = ["prometheus/process"]
default = ["prometheus"]
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 @@ -33,8 +34,8 @@ futures = { version = "0.3" }
lazy_static = "1"
log = "0.4"
pin-project = "1"
prometheus = { version = "0.13", features = ["push"], default-features = false }
prost = "0.11"
prometheus = { version = "0.13", default-features = false }
prost = "0.12"
rand = "0.8"
# regex = "1"
semver = "1.0"
Expand Down

0 comments on commit b8bb324

Please sign in to comment.