cargo breaking changes
cargo 0.101.0 (November 16, 2026) is its newest release with breaking changes, 46 of them. The first: Removed cargo::context::GlobalContext::should_embed_metadata. Every breaking API change we have recorded in cargo on crates.io: 46 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.101.0, released November 16, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
cargo 0.101.0 breaking changes
- Removed
cargo::context::GlobalContext::should_embed_metadata
cargo::context::GlobalContext::should_embed_metadata was removed in cargo 0.101.0 crates.io - Removed
cargo::context::GlobalRegistryConfig::min_publish_age
cargo::context::GlobalRegistryConfig::min_publish_age was removed in cargo 0.101.0 crates.io - Removed
cargo::context::GlobalRegistryConfig::secret_key
cargo::context::GlobalRegistryConfig::secret_key was removed in cargo 0.101.0 crates.io - Removed
cargo::context::GlobalRegistryConfig::secret_key_subject
cargo::context::GlobalRegistryConfig::secret_key_subject was removed in cargo 0.101.0 crates.io - Removed
cargo::context::RegistryConfig::secret_key
cargo::context::RegistryConfig::secret_key was removed in cargo 0.101.0 crates.io - Removed
cargo::context::RegistryConfig::secret_key_subject
cargo::context::RegistryConfig::secret_key_subject was removed in cargo 0.101.0 crates.io - Removed
cargo::GlobalContext::should_embed_metadata
cargo::GlobalContext::should_embed_metadata was removed in cargo 0.101.0 crates.io - Removed
cargo::ops::RegistryCredentialConfig::as_asymmetric_key
cargo::ops::RegistryCredentialConfig::as_asymmetric_key was removed in cargo 0.101.0 crates.io - Removed
cargo::ops::RegistryCredentialConfig::AsymmetricKey
cargo::ops::RegistryCredentialConfig::AsymmetricKey was removed in cargo 0.101.0 crates.io - Removed
cargo::ops::RegistryCredentialConfig::is_asymmetric_key
cargo::ops::RegistryCredentialConfig::is_asymmetric_key was removed in cargo 0.101.0 crates.io - Removed
cargo::ops::upgrade_manifests
cargo::ops::upgrade_manifests was removed in cargo 0.101.0 crates.io - Removed
cargo::ops::write_manifest_upgrades
cargo::ops::write_manifest_upgrades was removed in cargo 0.101.0 crates.io - Removed
cargo::util::command_prelude::GlobalContext::should_embed_metadata
cargo::util::command_prelude::GlobalContext::should_embed_metadata was removed in cargo 0.101.0 crates.io - Removed
cargo::util::credential::paseto
cargo::util::credential::paseto was removed in cargo 0.101.0 crates.io - Removed
cargo::util::GlobalContext::should_embed_metadata
cargo::util::GlobalContext::should_embed_metadata was removed in cargo 0.101.0 crates.io - Removed
cargo::util::OptVersionReq::matches_prerelease
cargo::util::OptVersionReq::matches_prerelease was removed in cargo 0.101.0 crates.io - Removed
cargo::workspace::dependency::Dependency::matches_prerelease
cargo::workspace::dependency::Dependency::matches_prerelease was removed in cargo 0.101.0 crates.io - Removed
cargo::workspace::Dependency::matches_prerelease
cargo::workspace::Dependency::matches_prerelease was removed in cargo 0.101.0 crates.io - Removed
cargo::workspace::editor::upgrade
cargo::workspace::editor::upgrade was removed in cargo 0.101.0 crates.io - Removed
cargo::workspace::features::GitoxideFeatures::internal_use_git2
cargo::workspace::features::GitoxideFeatures::internal_use_git2 was removed in cargo 0.101.0 crates.io - Removed
cargo::workspace::Workspace::ignore_lock
cargo::workspace::Workspace::ignore_lock was removed in cargo 0.101.0 crates.io - Removed
cargo::workspace::Workspace::set_ignore_lock
cargo::workspace::Workspace::set_ignore_lock was removed in cargo 0.101.0 crates.io - Renamed
cargo::ops::VersionControl
Use cargo::context::VersionControl instead. crates.io - Signature changed
cargo::compiler::TargetInfo::rustc_outputs
Was fn rustc_outputs(&self, mode: CompileMode, target_kind: &TargetKind, target_triple: &str, gctx: &GlobalContext) -> CargoResult<(Vec<FileType>, Vec<CrateType>)>; now fn rustc_outputs(&self, mode: CompileMode, target_kind: &TargetKind... crates.io - Signature changed
cargo::context::GlobalContext::get
Was fn get<'de, T: serde::de::Deserialize<'de>>(&self, key: &str) -> CargoResult<T>; now fn get<'de, T: serde::de::Deserialize<'de>>(&self, key: impl IntoIterator<Item = impl AsRef<str>>) -> CargoResult<T>. crates.io - Signature changed
cargo::context::GlobalContext::get_string
Was fn get_string(&self, key: &str) -> CargoResult<OptValue<String>>; now fn get_string(&self, key: impl IntoIterator<Item = impl AsRef<str>>) -> CargoResult<OptValue<String>>. crates.io - Signature changed
cargo::GlobalContext::get
Was fn get<'de, T: serde::de::Deserialize<'de>>(&self, key: &str) -> CargoResult<T>; now fn get<'de, T: serde::de::Deserialize<'de>>(&self, key: impl IntoIterator<Item = impl AsRef<str>>) -> CargoResult<T>. crates.io - Signature changed
cargo::GlobalContext::get_string
Was fn get_string(&self, key: &str) -> CargoResult<OptValue<String>>; now fn get_string(&self, key: impl IntoIterator<Item = impl AsRef<str>>) -> CargoResult<OptValue<String>>. crates.io - Signature changed
cargo::ops::check_yanked
Was fn check_yanked(gctx: &GlobalContext, pkg_set: &PackageSet<'_>, resolve: &Resolve, hint: &str) -> CargoResult<()>; now fn check_yanked(gctx: &GlobalContext, pkg_set: &PackageSet<'_>, resolve: &Resolve, hint: Option<&str>) ->... crates.io - Signature changed
cargo::util::command_prelude::GlobalContext::get
Was fn get<'de, T: serde::de::Deserialize<'de>>(&self, key: &str) -> CargoResult<T>; now fn get<'de, T: serde::de::Deserialize<'de>>(&self, key: impl IntoIterator<Item = impl AsRef<str>>) -> CargoResult<T>. crates.io - Signature changed
cargo::util::command_prelude::GlobalContext::get_string
Was fn get_string(&self, key: &str) -> CargoResult<OptValue<String>>; now fn get_string(&self, key: impl IntoIterator<Item = impl AsRef<str>>) -> CargoResult<OptValue<String>>. crates.io - Signature changed
cargo::util::GlobalContext::get
Was fn get<'de, T: serde::de::Deserialize<'de>>(&self, key: &str) -> CargoResult<T>; now fn get<'de, T: serde::de::Deserialize<'de>>(&self, key: impl IntoIterator<Item = impl AsRef<str>>) -> CargoResult<T>. crates.io - Signature changed
cargo::util::GlobalContext::get_string
Was fn get_string(&self, key: &str) -> CargoResult<OptValue<String>>; now fn get_string(&self, key: impl IntoIterator<Item = impl AsRef<str>>) -> CargoResult<OptValue<String>>. crates.io - Signature changed
cargo::util::log_message::LogMessage::BuildStarted
Was BuildStarted {/// The command-line arguments Cargo was invoked with. command: Vec<String>, /// Current working directory. cwd: PathBuf, /// Host triple. host: String, /// Number of parallel jobs. jobs: u32, /// Available parallelism of... crates.io - Signature changed
cargo::util::log_message::LogMessage::UnitRegistered
Was UnitRegistered {/// Package ID specification. package_id: PackageIdSpec, /// Cargo target (lib, bin, example, etc.). target: Target, /// The compilation action this unit is for (check, build, test, etc.). mode: CompileMode, /// The... crates.io - Signature changed
cargo::util::OptVersionReq::lock_to
Was fn lock_to(&mut self, version: &Version); now fn lock_to(&mut self, version: &Version, mode: VersionReqMatchMode). crates.io - Signature changed
cargo::util::OptVersionReq::matches
Was fn matches(&self, version: &Version) -> bool; now fn matches(&self, version: &Version, mode: VersionReqMatchMode) -> bool. crates.io - Signature changed
cargo::workspace::dependency::Dependency::lock_to
Was fn lock_to(&mut self, id: PackageId) -> &mut Dependency; now fn lock_to(&mut self, id: PackageId, mode: VersionReqMatchMode) -> &mut Dependency. crates.io - Signature changed
cargo::workspace::dependency::Dependency::matches
Was fn matches(&self, sum: &Summary) -> bool; now fn matches(&self, sum: &Summary, mode: VersionReqMatchMode) -> bool. crates.io - Signature changed
cargo::workspace::dependency::Dependency::matches_id
Was fn matches_id(&self, id: PackageId) -> bool; now fn matches_id(&self, id: PackageId, mode: VersionReqMatchMode) -> bool. crates.io - Signature changed
cargo::workspace::dependency::Dependency::matches_ignoring_source
Was fn matches_ignoring_source(&self, id: PackageId) -> bool; now fn matches_ignoring_source(&self, id: PackageId, mode: VersionReqMatchMode) -> bool. crates.io - Signature changed
cargo::workspace::Dependency::lock_to
Was fn lock_to(&mut self, id: PackageId) -> &mut Dependency; now fn lock_to(&mut self, id: PackageId, mode: VersionReqMatchMode) -> &mut Dependency. crates.io - Signature changed
cargo::workspace::Dependency::matches
Was fn matches(&self, sum: &Summary) -> bool; now fn matches(&self, sum: &Summary, mode: VersionReqMatchMode) -> bool. crates.io - Signature changed
cargo::workspace::Dependency::matches_id
Was fn matches_id(&self, id: PackageId) -> bool; now fn matches_id(&self, id: PackageId, mode: VersionReqMatchMode) -> bool. crates.io - Signature changed
cargo::workspace::Dependency::matches_ignoring_source
Was fn matches_ignoring_source(&self, id: PackageId) -> bool; now fn matches_ignoring_source(&self, id: PackageId, mode: VersionReqMatchMode) -> bool. crates.io - Signature changed
cargo::workspace::profiles::Profile::trim_paths
Was trim_paths: Option<TomlTrimPaths>; now trim_paths: TomlTrimPaths. crates.io
Related packages
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.