---
title: "prometheus 0.14.0 Breaking Changes on crates.io | Since.dev"
description: "What each prometheus release removed, renamed or changed: 10 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/prometheus
last_updated: 2026-12-04
---

# prometheus breaking changes

prometheus 0.14.0 (March 27, 2025) is its newest release with breaking changes, 10 of them. The first: Raises the minimum supported Rust version to 1.81 in prometheus 0.14.0. Every breaking API change we have recorded in prometheus on crates.io: 10 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.14.0`, released March 27, 2025. [Source repository](https://github.com/tikv/rust-prometheus)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## prometheus 0.14.0 breaking changes

prometheus 0.14.0, released March 27, 2025: 10 breaking changes.

- **Behavior changed**  

The minimum supported Rust compiler version is now 1.81. Users on older Rust toolchains must upgrade to build this release. [github.com](https://github.com/tikv/rust-prometheus/blob/v0.14.0/CHANGELOG.md)
- **Signature changed**  

Owned label values are now taken as AsRef\<str> instead of the previous type, so code passing owned label values may need its arguments adjusted. [github.com](https://github.com/tikv/rust-prometheus/blob/v0.14.0/CHANGELOG.md)
- **Signature changed** `prometheus::core::MetricVec::get_metric_with`  

Was fn get_metric_with(&self, labels: &HashMap<&str, &str>) -> Result\<T::M>; now fn get_metric_with\<V, S: BuildHasher>(&self, labels: &HashMap<&str, V, S>) -> Result\<T::M> where V: AsRef\<str> + std::fmt::Debug,. [crates.io](https://crates.io/crates/prometheus/0.14.0)
- **Signature changed** `prometheus::core::MetricVec::get_metric_with_label_values`  

Was fn get_metric_with_label_values(&self, vals: &\[&str\]) -> Result\<T::M>; now fn get_metric_with_label_values\<V>(&self, vals: &\[V\]) -> Result\<T::M> where V: AsRef\<str> + std::fmt::Debug,. [crates.io](https://crates.io/crates/prometheus/0.14.0)
- **Signature changed** `prometheus::core::MetricVec::remove`  

Was fn remove(&self, labels: &HashMap<&str, &str>) -> Result<()>; now fn remove\<V, S: BuildHasher>(&self, labels: &HashMap<&str, V, S>) -> Result<()> where V: AsRef\<str> + std::fmt::Debug,. [crates.io](https://crates.io/crates/prometheus/0.14.0)
- **Signature changed** `prometheus::core::MetricVec::remove_label_values`  

Was fn remove_label_values(&self, vals: &\[&str\]) -> Result<()>; now fn remove_label_values\<V>(&self, vals: &\[V\]) -> Result<()> where V: AsRef\<str> + std::fmt::Debug,. [crates.io](https://crates.io/crates/prometheus/0.14.0)
- **Signature changed** `prometheus::core::MetricVec::with`  

Was fn with(&self, labels: &HashMap<&str, &str>) -> T::M; now fn with\<V, S: BuildHasher>(&self, labels: &HashMap<&str, V, S>) -> T::M where V: AsRef\<str> + std::fmt::Debug,. [crates.io](https://crates.io/crates/prometheus/0.14.0)
- **Signature changed** `prometheus::core::MetricVec::with_label_values`  

Was fn with_label_values(&self, vals: &\[&str\]) -> T::M; now fn with_label_values\<V>(&self, vals: &\[V\]) -> T::M where V: AsRef\<str> + std::fmt::Debug,. [crates.io](https://crates.io/crates/prometheus/0.14.0)
- **Signature changed** `prometheus::core::MetricVecBuilder::build`  

Was fn build(&self, \_: &Self::P, \_: &\[&str\]) -> Result\<Self::M>; now fn build\<V: AsRef\<str>>(&self, \_: &Self::P, \_: &\[V\]) -> Result\<Self::M>. [crates.io](https://crates.io/crates/prometheus/0.14.0)
- **Signature changed** `prometheus::Error::Protobuf`  

Was Protobuf(#\[from\] protobuf::error::ProtobufError); now Protobuf(#\[from\] protobuf::Error). [crates.io](https://crates.io/crates/prometheus/0.14.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
