File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ permissions:
12
12
13
13
env :
14
14
CARGO_TERM_COLOR : always
15
- # Minimum supported Rust version (MSRV)
16
- ACTIONS_MSRV_TOOLCHAIN : 1.49.0
17
15
# Pinned toolchain for linting
18
16
ACTIONS_LINTS_TOOLCHAIN : 1.64.0
19
17
@@ -39,10 +37,17 @@ jobs:
39
37
steps :
40
38
- name : Checkout repository
41
39
uses : actions/checkout@v2
40
+ - name : Detect crate MSRV
41
+ shell : bash
42
+ run : |
43
+ msrv=$(cargo metadata --format-version 1 --no-deps | \
44
+ jq -r '.packages | .[].rust_version')
45
+ echo "Crate MSRV: $msrv"
46
+ echo "MSRV=$msrv" >> $GITHUB_ENV
42
47
- name : Install toolchain
43
48
uses : actions-rs/toolchain@v1
44
49
with :
45
- toolchain : ${{ env['ACTIONS_MSRV_TOOLCHAIN'] }}
50
+ toolchain : ${{ env.MSRV }}
46
51
default : true
47
52
- name : cargo build
48
53
run : cargo build
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " coreos-stream-metadata"
3
3
version = " 0.1.0"
4
- authors = [
" Colin Walters <[email protected] >" ]
5
- edition = " 2018"
4
+ edition = " 2021"
6
5
license = " Apache-2.0"
6
+ rust-version = " 1.60.0"
7
7
8
8
[dependencies ]
9
9
serde = { version = " ^1.0" , features = [" derive" ] }
You can’t perform that action at this time.
0 commit comments