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.
This commit is contained in:
bors 2023-08-24 11:01:36 +00:00
commit 2a159aaa67
15 changed files with 43 additions and 4 deletions

View File

@ -8,7 +8,33 @@
ignorePaths: [
"**/tests/**",
],
regexManagers: [
{
customType: 'regex',
fileMatch: [
'^Cargo.toml$',
],
matchStrings: [
'rust-version.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
],
depNameTemplate: 'latest-msrv',
packageNameTemplate: 'rust-lang/rust',
datasourceTemplate: 'github-releases',
},
],
packageRules: [
{
commitMessageTopic: 'Latest MSRV',
matchManagers: [
'regex',
],
matchPackageNames: [
'latest-msrv',
],
schedule: [
'* * * * *',
],
},
// Goals:
// - Rollup safe upgrades to reduce CI runner load
// - Have lockfile and manifest in-sync (implicit rules)

4
Cargo.lock generated
View File

@ -427,7 +427,7 @@ dependencies = [
[[package]]
name = "cargo-util"
version = "0.2.6"
version = "0.2.7"
dependencies = [
"anyhow",
"core-foundation",
@ -588,7 +588,7 @@ dependencies = [
[[package]]
name = "crates-io"
version = "0.38.0"
version = "0.38.1"
dependencies = [
"curl",
"percent-encoding",

View File

@ -11,6 +11,7 @@ exclude = [
]
[workspace.package]
rust-version = "1.71.0"
edition = "2021"
license = "MIT OR Apache-2.0"

View File

@ -1,6 +1,7 @@
[package]
name = "benchsuite"
version = "0.0.0"
rust-version.workspace = true
edition.workspace = true
license.workspace = true
homepage = "https://github.com/rust-lang/cargo"

View File

@ -1,6 +1,7 @@
[package]
name = "capture"
version = "0.1.0"
rust-version.workspace = true
edition.workspace = true
license.workspace = true
description = "Tool for capturing a real-world workspace for benchmarking."

View File

@ -1,6 +1,7 @@
[package]
name = "cargo-test-macro"
version = "0.1.0"
rust-version.workspace = true
edition.workspace = true
license.workspace = true
homepage = "https://github.com/rust-lang/cargo"

View File

@ -1,6 +1,7 @@
[package]
name = "cargo-test-support"
version = "0.1.0"
rust-version.workspace = true
license.workspace = true
edition.workspace = true
publish = false

View File

@ -1,6 +1,7 @@
[package]
name = "cargo-util"
version = "0.2.6"
version = "0.2.7"
rust-version.workspace = true
edition.workspace = true
license.workspace = true
homepage = "https://github.com/rust-lang/cargo"

View File

@ -1,6 +1,7 @@
[package]
name = "crates-io"
version = "0.38.0"
version = "0.38.1"
rust-version.workspace = true
edition.workspace = true
license.workspace = true
repository = "https://github.com/rust-lang/cargo"

View File

@ -1,6 +1,7 @@
[package]
name = "mdman"
version = "0.0.0"
rust-version.workspace = true
edition.workspace = true
license.workspace = true
description = "Creates a man page page from markdown."

View File

@ -1,6 +1,7 @@
[package]
name = "resolver-tests"
version = "0.0.0"
rust-version.workspace = true
edition.workspace = true
publish = false

View File

@ -2,6 +2,7 @@
name = "semver-check"
version = "0.0.0"
authors = ["Eric Huss"]
rust-version.workspace = true
edition.workspace = true
publish = false

View File

@ -1,6 +1,7 @@
[package]
name = "xtask-build-man"
version = "0.0.0"
rust-version.workspace = true
edition.workspace = true
publish = false

View File

@ -1,6 +1,7 @@
[package]
name = "xtask-bump-check"
version = "0.0.0"
rust-version.workspace = true
edition.workspace = true
publish = false

View File

@ -1,6 +1,7 @@
[package]
name = "xtask-stale-label"
version = "0.0.0"
rust-version.workspace = true
edition.workspace = true
publish = false