From 0a165a19c36a8e2e96dc3e070e7050c72be49efc Mon Sep 17 00:00:00 2001 From: Andronik Ordian <write@reusable.software> Date: Tue, 28 Jul 2020 11:13:11 +0200 Subject: [PATCH] prometheus: don't use protobuf feature (#6744) --- substrate/Cargo.lock | 11 ++--------- substrate/primitives/utils/Cargo.toml | 2 +- substrate/utils/prometheus/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/substrate/Cargo.lock b/substrate/Cargo.lock index 866201ce378..6a8d9c09054 100644 --- a/substrate/Cargo.lock +++ b/substrate/Cargo.lock @@ -5442,14 +5442,13 @@ dependencies = [ [[package]] name = "prometheus" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0575e258dab62268e7236d7307caa38848acbda7ec7ab87bd9093791e999d20" +checksum = "dd0ced56dee39a6e960c15c74dc48849d614586db2eaada6497477af7c7811cd" dependencies = [ "cfg-if", "fnv", "lazy_static", - "protobuf", "spin", "thiserror", ] @@ -5505,12 +5504,6 @@ dependencies = [ "prost", ] -[[package]] -name = "protobuf" -version = "2.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e86d370532557ae7573551a1ec8235a0f8d6cb276c7c9e6aa490b511c447485" - [[package]] name = "pwasm-utils" version = "0.12.0" diff --git a/substrate/primitives/utils/Cargo.toml b/substrate/primitives/utils/Cargo.toml index 41d7e4cf977..a554a44ce44 100644 --- a/substrate/primitives/utils/Cargo.toml +++ b/substrate/primitives/utils/Cargo.toml @@ -12,7 +12,7 @@ description = "I/O for Substrate runtimes" futures = "0.3.4" futures-core = "0.3.4" lazy_static = "1.4.0" -prometheus = "0.8.0" +prometheus = { version = "0.9.0", default-features = false } futures-timer = "3.0.2" [features] diff --git a/substrate/utils/prometheus/Cargo.toml b/substrate/utils/prometheus/Cargo.toml index 6a2e993a49a..805ea19cdc6 100644 --- a/substrate/utils/prometheus/Cargo.toml +++ b/substrate/utils/prometheus/Cargo.toml @@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] log = "0.4.8" -prometheus = "0.8" +prometheus = { version = "0.9", default-features = false } futures-util = { version = "0.3.1", default-features = false, features = ["io"] } derive_more = "0.99" -- GitLab