Skip to content

Commit fe12610

Browse files
committed
Set MSRV to 1.54 without std, 1.63 with.
1 parent 1120fb3 commit fe12610

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.github/workflows/clippy.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,22 @@ on:
88
jobs:
99
clippy:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
include:
14+
- rust: 1.54
15+
features: ''
16+
- rust: 1.63
17+
features: ''
18+
- rust: 1.63
19+
features: 'std'
1120
steps:
1221
- uses: actions/checkout@v2
1322
- name: Install Rust
1423
uses: actions-rs/toolchain@v1
1524
with:
16-
toolchain: 1.63
25+
toolchain: ${{matrix.rust}}
1726
components: clippy
1827
override: true
19-
- name: Build
20-
run: cargo clippy
21-
- name: Build for std
22-
run: cargo clippy --features std
28+
- name: Clippy check
29+
run: cargo clippy --features "${{matrix.features}}"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "critical-section"
33
version = "1.0.0"
4-
edition = "2021"
4+
edition = "2018"
55
description = "Cross-platform critical section"
66
repository = "https://github.com/rust-embedded/critical-section"
77
readme = "README.md"

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ which would be unsound.
191191

192192
## Minimum Supported Rust Version (MSRV)
193193

194-
This crate is guaranteed to compile on stable Rust 1.63 and up. It might compile with older versions but that may change in any new patch release.
194+
This crate is guaranteed to compile on the following Rust versions:
195+
196+
- If the `std` feature is not enabled: stable Rust 1.54 and up.
197+
- If the `std` feature is enabled: stable Rust 1.63 and up.
198+
199+
It might compile with older versions but that may change in any new patch release.
195200

196201
## License
197202

0 commit comments

Comments
 (0)