Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set MSRV to 1.54 without std, 1.63 with.
  • Loading branch information
Dirbaio committed Aug 17, 2022
commit fe126105bd012962bdf1d96aeb2e6f2353e7bc2d
17 changes: 12 additions & 5 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@ on:
jobs:
clippy:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust: 1.54
features: ''
- rust: 1.63
features: ''
- rust: 1.63
features: 'std'
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.63
toolchain: ${{matrix.rust}}
components: clippy
override: true
- name: Build
run: cargo clippy
- name: Build for std
run: cargo clippy --features std
- name: Clippy check
run: cargo clippy --features "${{matrix.features}}"
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "critical-section"
version = "1.0.0"
edition = "2021"
edition = "2018"
description = "Cross-platform critical section"
repository = "https://github.com/rust-embedded/critical-section"
readme = "README.md"
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ which would be unsound.

## Minimum Supported Rust Version (MSRV)

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.
This crate is guaranteed to compile on the following Rust versions:

- If the `std` feature is not enabled: stable Rust 1.54 and up.
- If the `std` feature is enabled: stable Rust 1.63 and up.

It might compile with older versions but that may change in any new patch release.

## License

Expand Down