Skip to content

Commit f3c7fb4

Browse files
committed
cargo: add MSRV to manifest metadata
1 parent bbf8b00 commit f3c7fb4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11-
# Minimum supported Rust version (MSRV)
12-
ACTION_MSRV_TOOLCHAIN: 1.63.0
1311
# Pinned toolchain for linting
1412
ACTION_LINTS_TOOLCHAIN: 1.85.0
1513

@@ -50,6 +48,8 @@ jobs:
5048
steps:
5149
- name: Checkout repository
5250
uses: actions/checkout@v2
51+
- name: Extract MSRV
52+
run: echo "ACTION_MSRV_TOOLCHAIN=$(grep 'rust-version' Cargo.toml | cut -d '"' -f2)" >> $GITHUB_ENV
5353
- name: Install toolchain
5454
uses: actions-rs/toolchain@v1
5555
with:

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "caps"
33
version = "0.5.5"
44
edition = "2018"
5+
rust-version = "1.63"
56
authors = ["Luca Bruno <[email protected]>"]
67
license = "MIT/Apache-2.0"
78
repository = "https://github.com/lucab/caps-rs"

0 commit comments

Comments
 (0)