Skip to content

Commit a6cb914

Browse files
chore(ci): declare and gate msrv at 1.88 (#292)
Declares a minimum supported Rust version and verifies it in CI, so the crate makes an explicit toolchain commitment ahead of a stable release. The value was derived from the current dependency tree and can be relaxed if we want broader compatibility.
1 parent dca2054 commit a6cb914

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,19 @@ jobs:
3535
LIBWEBAUTHN_PSL_SYSTEM_TEST: "1"
3636
- name: Verify libwebauthn publishes cleanly
3737
run: cargo publish --dry-run -p libwebauthn
38+
39+
msrv:
40+
name: Verify MSRV
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Checkout submodules
45+
run: git submodule update --init --recursive
46+
- name: Update apt cache
47+
run: sudo apt-get update
48+
- name: Install system dependencies
49+
run: sudo apt-get install libudev-dev libdbus-1-dev libsodium-dev libnfc-dev libpcsclite-dev publicsuffix
50+
- name: Install declared MSRV toolchain
51+
run: rustup toolchain install 1.88 --profile minimal
52+
- name: Check against declared MSRV
53+
run: cargo +1.88 check --workspace --all-features

libwebauthn-tests/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "libwebauthn-tests"
33
version = "0.0.0"
44
edition = "2021"
5+
rust-version = "1.88"
56
publish = false
67
license-file = "../COPYING"
78

libwebauthn/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ authors = [
88
"Isaiah Inuwa <isaiah.inuwa@gmail.com>",
99
]
1010
edition = "2021"
11+
rust-version = "1.88"
1112
license = "LGPL-2.1-or-later"
1213
license-file = "../COPYING"
1314
readme = "../README.md"

0 commit comments

Comments
 (0)