Skip to content

Commit 73d9081

Browse files
committed
Auto merge of #12623 - arlosi:cred-msrv, r=weihanglo
Add MSRV validation GitHub Action for cargo-credential `cargo-credential` should have a separate MSRV from the rest of Cargo that is more relaxed.
2 parents d14c85f + a900742 commit 73d9081

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
needs:
2121
- build_std
2222
- clippy
23+
- credential_msrv
2324
- docs
2425
- lockfile
2526
- resolver
@@ -37,6 +38,7 @@ jobs:
3738
needs:
3839
- build_std
3940
- clippy
41+
- credential_msrv
4042
- docs
4143
- lockfile
4244
- resolver
@@ -246,3 +248,10 @@ jobs:
246248
cd target
247249
curl -sSLO https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
248250
sh linkcheck.sh --all --path ../src/doc cargo
251+
252+
credential_msrv:
253+
runs-on: ubuntu-latest
254+
steps:
255+
- uses: actions/checkout@v3
256+
- run: rustup update 1.70 && rustup default 1.70
257+
- run: cargo test -p cargo-credential

credential/cargo-credential/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "cargo-credential"
33
version = "0.4.0"
44
edition.workspace = true
55
license.workspace = true
6+
rust-version = "1.70.0"
67
repository = "https://github.com/rust-lang/cargo"
78
description = "A library to assist writing Cargo credential helpers."
89

0 commit comments

Comments
 (0)