Skip to content

Commit 8b39dc0

Browse files
committed
Auto merge of #12381 - epage:msrv, r=weihanglo
fix: Set MSRV for internal packages ### What does this PR try to resolve? Correctly communicates the MSRV we support to our users. For packages that are more generally mean to be used by other people, I've punted on for now (see ehuss' comment on this PR). We'll likely need to figure this out for #12432 though ### Additional information This is prep for a future change which will have us use a fixed rust version for the semver tests with a PR updating them.
2 parents 0c51462 + 87b6e0e commit 8b39dc0

File tree

15 files changed

+43
-4
lines changed

15 files changed

+43
-4
lines changed

.github/renovate.json5

+26
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,33 @@
88
ignorePaths: [
99
"**/tests/**",
1010
],
11+
regexManagers: [
12+
{
13+
customType: 'regex',
14+
fileMatch: [
15+
'^Cargo.toml$',
16+
],
17+
matchStrings: [
18+
'rust-version.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
19+
],
20+
depNameTemplate: 'latest-msrv',
21+
packageNameTemplate: 'rust-lang/rust',
22+
datasourceTemplate: 'github-releases',
23+
},
24+
],
1125
packageRules: [
26+
{
27+
commitMessageTopic: 'Latest MSRV',
28+
matchManagers: [
29+
'regex',
30+
],
31+
matchPackageNames: [
32+
'latest-msrv',
33+
],
34+
schedule: [
35+
'* * * * *',
36+
],
37+
},
1238
// Goals:
1339
// - Rollup safe upgrades to reduce CI runner load
1440
// - Have lockfile and manifest in-sync (implicit rules)

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exclude = [
1111
]
1212

1313
[workspace.package]
14+
rust-version = "1.71.0"
1415
edition = "2021"
1516
license = "MIT OR Apache-2.0"
1617

benches/benchsuite/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "benchsuite"
33
version = "0.0.0"
4+
rust-version.workspace = true
45
edition.workspace = true
56
license.workspace = true
67
homepage = "https://github.com/rust-lang/cargo"

benches/capture/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "capture"
33
version = "0.1.0"
4+
rust-version.workspace = true
45
edition.workspace = true
56
license.workspace = true
67
description = "Tool for capturing a real-world workspace for benchmarking."

crates/cargo-test-macro/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "cargo-test-macro"
33
version = "0.1.0"
4+
rust-version.workspace = true
45
edition.workspace = true
56
license.workspace = true
67
homepage = "https://github.com/rust-lang/cargo"

crates/cargo-test-support/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "cargo-test-support"
33
version = "0.1.0"
4+
rust-version.workspace = true
45
license.workspace = true
56
edition.workspace = true
67
publish = false

crates/cargo-util/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "cargo-util"
3-
version = "0.2.6"
3+
version = "0.2.7"
4+
rust-version.workspace = true
45
edition.workspace = true
56
license.workspace = true
67
homepage = "https://github.com/rust-lang/cargo"

crates/crates-io/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "crates-io"
3-
version = "0.38.0"
3+
version = "0.38.1"
4+
rust-version.workspace = true
45
edition.workspace = true
56
license.workspace = true
67
repository = "https://github.com/rust-lang/cargo"

crates/mdman/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "mdman"
33
version = "0.0.0"
4+
rust-version.workspace = true
45
edition.workspace = true
56
license.workspace = true
67
description = "Creates a man page page from markdown."

crates/resolver-tests/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "resolver-tests"
33
version = "0.0.0"
4+
rust-version.workspace = true
45
edition.workspace = true
56
publish = false
67

crates/semver-check/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "semver-check"
33
version = "0.0.0"
44
authors = ["Eric Huss"]
5+
rust-version.workspace = true
56
edition.workspace = true
67
publish = false
78

crates/xtask-build-man/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "xtask-build-man"
33
version = "0.0.0"
4+
rust-version.workspace = true
45
edition.workspace = true
56
publish = false
67

crates/xtask-bump-check/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "xtask-bump-check"
33
version = "0.0.0"
4+
rust-version.workspace = true
45
edition.workspace = true
56
publish = false
67

crates/xtask-stale-label/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "xtask-stale-label"
33
version = "0.0.0"
4+
rust-version.workspace = true
45
edition.workspace = true
56
publish = false
67

0 commit comments

Comments
 (0)