From 959c9521c8ef38d7409e6b34aa4a42097b670b6a Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 11 Aug 2025 21:27:07 -0500 Subject: [PATCH] Add the Rust toolchain to Renovate (#15223) Inspired by - https://github.com/Turbo87/renovate-config/blob/master/rust/updateToolchain.json - https://github.com/rust-lang/cargo/blob/master/.github/renovate.json5#L66-L81 --- .github/renovate.json5 | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 4dff3b62e..45f80a7b2 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -86,6 +86,21 @@ description: "Weekly update of pyo3 dependencies", enabled: false, }, + { + commitMessageTopic: "MSRV", + matchManagers: ["regex"], + matchDepNames: ["msrv"], + // We have a rolling support policy for the MSRV + // 2 releases back * 6 weeks per release * 7 days per week + 1 + minimumReleaseAge: "85 days", + internalChecksFilter: "strict", + groupName: "MSRV", + }, + { + matchManagers: ["regex"], + matchDepNames: ["rust"], + commitMessageTopic: "Rust", + }, ], customManagers: [ // Update major GitHub actions references in documentation. @@ -98,6 +113,27 @@ datasourceTemplate: "github-tags", versioningTemplate: "regex:^v(?\\d+)$", }, + // Minimum supported Rust toolchain version + { + customType: "regex", + fileMatch: ["(^|/)Cargo\\.toml?$"], + matchStrings: [ + 'rust-version\\s*=\\s*"(?\\d+\\.\\d+(\\.\\d+)?)"', + ], + depNameTemplate: "msrv", + lookupNameTemplate: "rust-lang/rust", + datasourceTemplate: "github-releases", + }, + // Rust toolchain version + { + fileMatch: ["(^|/)rust-toolchain\\.toml?$"], + matchStrings: [ + 'channel\\s*=\\s*"(?\\d+\\.\\d+(\\.\\d+)?)"', + ], + depNameTemplate: "rust", + lookupNameTemplate: "rust-lang/rust", + datasourceTemplate: "github-releases", + }, ], vulnerabilityAlerts: { commitMessageSuffix: "",