mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
1.4 KiB
1.4 KiB
title | description |
---|---|
Rust crates | Rust crates support in Renovate |
Automated Dependency Updates for Rust crates
Renovate supports upgrading dependencies in Cargo.toml
files and their accompanying Cargo.lock
checksums.
How it works
- Renovate searches in each repository for any
Cargo.toml
files - Renovate extracts existing dependencies from
[dependencies]
,[dev-dependencies]
and[build-dependencies]
- Renovate attempts to find and parse a
.cargo/config.toml
file to discover index URLs for private registries - Renovate resolves the dependency's version using the crates.io API or by cloning the index URL
- If Renovate finds an update, Renovate will use
cargo update
to update bothCargo.toml
andCargo.lock
Enabling Rust Modules Updating
Renovate updates Rust crates by default.
Private crate registries and private Git dependencies
If any dependencies are hosted in private Git repositories, Git Authentication for cargo must be set up.
If any dependencies are hosted on private crate registries (ie., not on crates.io
), then credentials should be set up in such a way that the Git command-line is able to clone the registry index.
Third-party crate registries usually provide instructions to achieve this.
Both of these are currently only possible when running Renovate self-hosted.