---
title: "cargo_metadata 0.22.0 Breaking Changes on crates.io"
description: "What each cargo_metadata release removed, renamed or changed: 29 breaking changes in 6 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/cargo_metadata
last_updated: 2026-12-04
---

# cargo_metadata breaking changes

cargo_metadata 0.22.0 (August 18, 2025) is its newest release with breaking changes. The first: Signature changed Dependency.source. Every breaking API change we have recorded in cargo_metadata on crates.io: 29 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.23.1`, released November 12, 2025. [Source repository](https://github.com/oli-obk/cargo%5Fmetadata)

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

- From [0.15.0](#v-0-15-0) to [0.22.0](#v-0-22-0): 24 breaking changes in 5 versions.

## cargo_metadata 0.22.0 breaking changes

cargo_metadata 0.22.0, released August 18, 2025: 1 breaking change.

- **Signature changed** `Dependency.source`  

The source member of Dependency is now Option\<Source>, matching Package. Code that reads or constructs Dependency.source must be updated to the new type. [github.com](https://github.com/oli-obk/cargo%5Fmetadata/blob/0.22.0/CHANGELOG.md)

## cargo_metadata 0.21.0 breaking changes

cargo_metadata 0.21.0, released July 10, 2025: 2 breaking changes.

- **Signature changed** `cargo_metadata::NodeDep::name`  

Was name: PackageName; now name: String. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.21.0)
- **Signature changed** `cargo_metadata::Result`  

Was type Result\<T> = ::std::result::Result\<T, Error>; now type Result\<T, E = Error> = ::std::result::Result\<T, E>. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.21.0)

## cargo_metadata 0.20.0 breaking changes

cargo_metadata 0.20.0, released May 27, 2025: 4 breaking changes.

- **Signature changed** `cargo_metadata::Dependency::source`  

Was source: Option\<String>; now source: Option\<Source>. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.20.0)
- **Signature changed** `cargo_metadata::Node::features`  

Was features: Vec\<String>; now features: Vec\<FeatureName>. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.20.0)
- **Signature changed** `cargo_metadata::NodeDep::name`  

Was name: String; now name: PackageName. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.20.0)
- **Signature changed** `cargo_metadata::Package::name`  

Was name: String; now name: PackageName. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.20.0)

## cargo_metadata 0.19.0 breaking changes

cargo_metadata 0.19.0, released November 20, 2024: 14 breaking changes.

- **Removed** `BuildMetadata`  

The re-exports of BuildMetadata and Prerelease from the semver crate were removed; import them from semver directly. [github.com](https://github.com/oli-obk/cargo%5Fmetadata/blob/0.19.0/CHANGELOG.md)
- **Removed** `cargo_metadata::Target::is_bench`  

The is_lib, is_bin, is_example, is_test, is_bench, is_custom_build and is_proc_macro methods on Target were removed; use is_kind instead. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.19.0)
- **Removed** `cargo_metadata::Target::is_bin`  

The is_lib, is_bin, is_example, is_test, is_bench, is_custom_build and is_proc_macro methods on Target were removed; use is_kind instead. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.19.0)
- **Removed** `cargo_metadata::Target::is_custom_build`  

The is_lib, is_bin, is_example, is_test, is_bench, is_custom_build and is_proc_macro methods on Target were removed; use is_kind instead. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.19.0)
- **Removed** `cargo_metadata::Target::is_example`  

The is_lib, is_bin, is_example, is_test, is_bench, is_custom_build and is_proc_macro methods on Target were removed; use is_kind instead. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.19.0)
- **Removed** `cargo_metadata::Target::is_lib`  

The is_lib, is_bin, is_example, is_test, is_bench, is_custom_build and is_proc_macro methods on Target were removed; use is_kind instead. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.19.0)
- **Removed** `cargo_metadata::Target::is_test`  

The is_lib, is_bin, is_example, is_test, is_bench, is_custom_build and is_proc_macro methods on Target were removed; use is_kind instead. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.19.0)
- **Removed** `Prerelease`  

The re-exports of BuildMetadata and Prerelease from the semver crate were removed; import them from semver directly. [github.com](https://github.com/oli-obk/cargo%5Fmetadata/blob/0.19.0/CHANGELOG.md)
- **Removed** `Target.is_proc_macro`  

The is_lib, is_bin, is_example, is_test, is_bench, is_custom_build and is_proc_macro methods on Target were removed; use is_kind instead. [github.com](https://github.com/oli-obk/cargo%5Fmetadata/blob/0.19.0/CHANGELOG.md)
- **Behavior changed**  

The MSRV was bumped from 1.42.0 to 1.56.0; users on older Rust toolchains must upgrade. [github.com](https://github.com/oli-obk/cargo%5Fmetadata/blob/0.19.0/CHANGELOG.md)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## cargo_metadata 0.17.0 breaking changes

cargo_metadata 0.17.0, released July 24, 2023: 3 breaking changes.

- **Signature changed** `cargo_metadata::ArtifactProfile::debuginfo`  

Was debuginfo: Option\<u32>; now debuginfo: ArtifactDebuginfo. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.17.0)
- **Signature changed** `cargo_metadata::Package::features`  

Was features: HashMap\<String, Vec\<String>>; now features: BTreeMap\<String, Vec\<String>>. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.17.0)
- **Signature changed** `cargo_metadata::Package::rust_version`  

Was rust_version: Option\<VersionReq>; now rust_version: Option\<Version>. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.17.0)

## cargo_metadata 0.15.0 breaking changes

cargo_metadata 0.15.0, released June 22, 2022: 5 breaking changes.

- **Removed** `cargo_metadata::Version`  

cargo_metadata::Version was removed in cargo_metadata 0.15.0 [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.15.0)
- **Removed** `cargo_metadata::VersionReq`  

cargo_metadata::VersionReq was removed in cargo_metadata 0.15.0 [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.15.0)
- **Signature changed** `cargo_metadata::Message::parse_stream`  

Was fn parse_stream\<R: BufRead>(input: R) -> MessageIter\<R>; now fn parse_stream\<R: Read>(input: R) -> MessageIter\<R>. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.15.0)
- **Signature changed** `cargo_metadata::Package::edition`  

Was edition: String; now edition: Edition. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.15.0)
- **Signature changed** `cargo_metadata::Target::edition`  

Was edition: String; now edition: Edition. [crates.io](https://crates.io/crates/cargo%5Fmetadata/0.15.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.
