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
On this page
Latest version 0.23.1, released November 12, 2025. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
cargo_metadata 0.22.0 breaking changes
- 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
cargo_metadata 0.21.0 breaking changes
- Signature changed
cargo_metadata::NodeDep::name
Was name: PackageName; now name: String. crates.io - 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
cargo_metadata 0.20.0 breaking changes
- Signature changed
cargo_metadata::Dependency::source
Was source: Option<String>; now source: Option<Source>. crates.io - Signature changed
cargo_metadata::Node::features
Was features: Vec<String>; now features: Vec<FeatureName>. crates.io - Signature changed
cargo_metadata::NodeDep::name
Was name: String; now name: PackageName. crates.io - Signature changed
cargo_metadata::Package::name
Was name: String; now name: PackageName. crates.io
cargo_metadata 0.19.0 breaking changes
- Removed
BuildMetadata
The re-exports of BuildMetadata and Prerelease from the semver crate were removed; import them from semver directly. github.com - 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 - 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 - 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 - 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 - 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 - 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 - Removed
Prerelease
The re-exports of BuildMetadata and Prerelease from the semver crate were removed; import them from semver directly. github.com - 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 - Behavior changed
The MSRV was bumped from 1.42.0 to 1.56.0; users on older Rust toolchains must upgrade. github.com
And 4 more in this version. Sign up to see every change
cargo_metadata 0.17.0 breaking changes
- Signature changed
cargo_metadata::ArtifactProfile::debuginfo
Was debuginfo: Option<u32>; now debuginfo: ArtifactDebuginfo. crates.io - Signature changed
cargo_metadata::Package::features
Was features: HashMap<String, Vec<String>>; now features: BTreeMap<String, Vec<String>>. crates.io - Signature changed
cargo_metadata::Package::rust_version
Was rust_version: Option<VersionReq>; now rust_version: Option<Version>. crates.io
cargo_metadata 0.15.0 breaking changes
- Removed
cargo_metadata::Version
cargo_metadata::Version was removed in cargo_metadata 0.15.0 crates.io - Removed
cargo_metadata::VersionReq
cargo_metadata::VersionReq was removed in cargo_metadata 0.15.0 crates.io - 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 - Signature changed
cargo_metadata::Package::edition
Was edition: String; now edition: Edition. crates.io - Signature changed
cargo_metadata::Target::edition
Was edition: String; now edition: Edition. 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.