Skip to content

Commit 1ddd559

Browse files
authored
Merge pull request #35 from cgwalters/edition-updates
Bump to 2021 edition + Remove `authors` entry
2 parents 5830e92 + 58ab0c6 commit 1ddd559

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/rust.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ permissions:
1212

1313
env:
1414
CARGO_TERM_COLOR: always
15-
# Minimum supported Rust version (MSRV)
16-
ACTIONS_MSRV_TOOLCHAIN: 1.49.0
1715
# Pinned toolchain for linting
1816
ACTIONS_LINTS_TOOLCHAIN: 1.64.0
1917

@@ -39,10 +37,17 @@ jobs:
3937
steps:
4038
- name: Checkout repository
4139
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
4247
- name: Install toolchain
4348
uses: actions-rs/toolchain@v1
4449
with:
45-
toolchain: ${{ env['ACTIONS_MSRV_TOOLCHAIN'] }}
50+
toolchain: ${{ env.MSRV }}
4651
default: true
4752
- name: cargo build
4853
run: cargo build

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
22
name = "coreos-stream-metadata"
33
version = "0.1.0"
4-
authors = ["Colin Walters <[email protected]>"]
5-
edition = "2018"
4+
edition = "2021"
65
license = "Apache-2.0"
6+
rust-version = "1.60.0"
77

88
[dependencies]
99
serde = { version = "^1.0", features = ["derive"] }

0 commit comments

Comments
 (0)