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
On this page
Latest version 0.14.0, released March 27, 2025. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
prometheus 0.14.0 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
prometheus::Error::Protobuf
Was Protobuf(#[from] protobuf::error::ProtobufError); now Protobuf(#[from] protobuf::Error). crates.io
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.