From 1a95902ba8877e03aa143151859e9ca5d1ba1473 Mon Sep 17 00:00:00 2001 From: koushiro Date: Mon, 27 May 2024 18:45:10 +0800 Subject: [PATCH 1/2] chore(deps): update prost dependencies to v0.12 Signed-off-by: koushiro --- Cargo.toml | 8 ++++---- src/encoding/text.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 06385a2e..77afd18f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,14 +22,14 @@ dtoa = "1.0" itoa = "1.0" parking_lot = "0.12" prometheus-client-derive-encode = { version = "0.4.1", path = "derive-encode" } -prost = { version = "0.11.0", optional = true } -prost-types = { version = "0.11.0", optional = true } +prost = { version = "0.12.0", optional = true } +prost-types = { version = "0.12.0", optional = true } [dev-dependencies] async-std = { version = "1", features = ["attributes"] } criterion = "0.5" http-types = "2" -pyo3 = "0.20" +pyo3 = "0.21" quickcheck = "1" rand = "0.8.4" tide = "0.16" @@ -40,7 +40,7 @@ hyper-util = { version = "0.1.3", features = ["tokio"] } http-body-util = "0.1.1" [build-dependencies] -prost-build = { version = "0.11.0", optional = true } +prost-build = { version = "0.12.0", optional = true } [[bench]] name = "baseline" diff --git a/src/encoding/text.rs b/src/encoding/text.rs index 4acf1d51..b14d2c2c 100644 --- a/src/encoding/text.rs +++ b/src/encoding/text.rs @@ -920,7 +920,7 @@ mod tests { println!("{:?}", input); Python::with_gil(|py| { - let parser = PyModule::from_code( + let parser = PyModule::from_code_bound( py, r#" from prometheus_client.openmetrics.parser import text_string_to_metric_families From b7239b657bf2f73d83436a9b8ab52cfc2d74a86e Mon Sep 17 00:00:00 2001 From: koushiro Date: Mon, 15 Jul 2024 15:27:27 +0800 Subject: [PATCH 2/2] update minor version and changelog Signed-off-by: koushiro --- CHANGELOG.md | 7 ++++++- Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6eed664..aead91a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.22.3] - unreleased +## [0.23.0] - unreleased ### Added @@ -18,6 +18,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [PR 203]: https://github.com/prometheus/client_rust/pull/203 +- Update `prost` dependencies to `v0.12`. + See [PR 198]. + +[PR 198]: https://github.com/prometheus/client_rust/pull/198 + ## [0.22.2] ### Added diff --git a/Cargo.toml b/Cargo.toml index 1e933f06..565eead9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prometheus-client" -version = "0.22.3" +version = "0.23.0" authors = ["Max Inden "] edition = "2021" description = "Open Metrics client library allowing users to natively instrument applications."