Skip to content

Automated Dependency Updates for Cargo

Renovate supports updating Cargo dependencies.

File Matching

By default, Renovate will check any files matching the following regular expression: (^|/)Cargo\.toml$.

For details on how to extend a manager's fileMatch value, please follow this link.

Supported datasources

This manager supports extracting the following datasources: crate.

Default config

{
  "commitMessageTopic": "Rust crate {{depName}}",
  "fileMatch": [
    "(^|/)Cargo\\.toml$"
  ],
  "versioning": "cargo",
  "rangeStrategy": "bump"
}

Additional Information

Extracts dependencies from Cargo.toml files, and also updates Cargo.lock files too if found.

Open feature requests

  • Support Rust/Cargo constraints when updating artifacts #6365
  • Detect workspace.dependencies for rust/cargo #18786

The above list of features were current when this page was generated on December 08, 2022.