Skip to content

Commit 010dc85

Browse files
bors[bot]Dirbaio
andauthored
Merge #438
438: Bump MSRV to 1.59, switch to Edition 2021. Fix CI. r=therealprof a=Dirbaio Bump MSRV to 1.59, switch to Edition 2021. Fixes CI, It broke due to yanking `cortex-m-rt 0.71` due to the stack align bug. ~~I don't think the MSRV should matter for `dev-dependencies`? They're only required for running tests, bumping it doesn't affect crates using `embedded-hal` as a regular dep.~~ of course *out* CI requires it, duh. Co-authored-by: Dario Nieuwenhuis <[email protected]>
2 parents 5f01042 + d36ddc2 commit 010dc85

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

.github/bors.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ status = [
55
"test (stable, x86_64-unknown-linux-gnu)",
66
"test (stable, thumbv6m-none-eabi)",
77
"test (stable, thumbv7m-none-eabi)",
8-
"test (1.54.0, x86_64-unknown-linux-gnu)",
9-
"test (1.54.0, thumbv6m-none-eabi)",
10-
"test (1.54.0, thumbv7m-none-eabi)",
8+
"test (1.59.0, x86_64-unknown-linux-gnu)",
9+
"test (1.59.0, thumbv6m-none-eabi)",
10+
"test (1.59.0, thumbv7m-none-eabi)",
1111
"test (nightly, x86_64-unknown-linux-gnu)",
1212
"test (nightly, thumbv6m-none-eabi)",
1313
"test (nightly, thumbv7m-none-eabi)",

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# All generated code should be running on stable now
1717
rust:
1818
- stable
19-
- 1.54.0 # MSRV
19+
- 1.59.0 # MSRV
2020
- nightly
2121

2222
# The default target we're compiling on and for

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ on crates.io.
7272

7373
## Minimum Supported Rust Version (MSRV)
7474

75-
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
75+
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
7676
compile with older versions but that may change in any new patch release.
7777

7878
See [here](docs/msrv.md) for details on how the MSRV may be upgraded.

embedded-can/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "embedded-can"
33
version = "0.4.1"
4-
edition = "2018"
4+
edition = "2021"
55

66
description = "HAL traits for Controller Area Network (CAN) devices."
77
categories = ["embedded", "hardware-support", "no-std"]

embedded-can/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![crates.io](https://img.shields.io/crates/d/embedded-can.svg)](https://crates.io/crates/embedded-can)
22
[![crates.io](https://img.shields.io/crates/v/embedded-can.svg)](https://crates.io/crates/embedded-can)
33
[![Documentation](https://docs.rs/embedded-can/badge.svg)](https://docs.rs/embedded-can)
4-
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.54+-blue.svg)
4+
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.59+-blue.svg)
55

66
# `embedded-can`
77

@@ -15,7 +15,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
1515

1616
## Minimum Supported Rust Version (MSRV)
1717

18-
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
18+
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
1919
compile with older versions but that may change in any new patch release.
2020

2121
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.

embedded-hal-async/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
categories = ["asynchronous", "embedded", "hardware-support", "no-std"]
66
description = "An asynchronous Hardware Abstraction Layer (HAL) for embedded systems"
77
documentation = "https://docs.rs/embedded-hal-async"
8-
edition = "2018"
8+
edition = "2021"
99
keywords = ["hal", "IO"]
1010
license = "MIT OR Apache-2.0"
1111
name = "embedded-hal-async"

embedded-hal-bus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
categories = ["embedded", "hardware-support", "no-std"]
66
description = "Bus/Device connection mechanisms for embedded-hal, a Hardware Abstraction Layer (HAL) for embedded systems"
77
documentation = "https://docs.rs/embedded-hal-bus"
8-
edition = "2018"
8+
edition = "2021"
99
keywords = ["hal", "IO"]
1010
license = "MIT OR Apache-2.0"
1111
name = "embedded-hal-bus"

embedded-hal-bus/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![crates.io](https://img.shields.io/crates/d/embedded-hal-bus.svg)](https://crates.io/crates/embedded-hal-bus)
22
[![crates.io](https://img.shields.io/crates/v/embedded-hal-bus.svg)](https://crates.io/crates/embedded-hal-bus)
33
[![Documentation](https://docs.rs/embedded-hal-bus/badge.svg)](https://docs.rs/embedded-hal-bus)
4-
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.54+-blue.svg)
4+
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.59+-blue.svg)
55

66
# `embedded-hal-bus`
77

@@ -27,7 +27,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
2727
## Minimum Supported Rust Version (MSRV)
2828

2929

30-
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
30+
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
3131
compile with older versions but that may change in any new patch release.
3232

3333
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.

embedded-hal-nb/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "embedded-hal-nb"
33
version = "1.0.0-alpha.1"
4-
edition = "2018"
4+
edition = "2021"
55

66
categories = ["embedded", "hardware-support", "no-std"]
77
description = "Non-blocking Hardware Abstraction Layer (HAL) for embedded systems using the `nb` crate."
@@ -16,5 +16,5 @@ embedded-hal = { version = "=1.0.0-alpha.9", path = "../embedded-hal" }
1616
nb = "1"
1717

1818
[dev-dependencies]
19-
cortex-m-rt = "=0.7.1" # 0.7.2 bumped its MSRV higher than embedded-hal's
19+
cortex-m-rt = "0.7"
2020
stm32f1 = { version = "0.15", features = ["stm32f103", "rt"] }

embedded-hal-nb/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![crates.io](https://img.shields.io/crates/d/embedded-hal-nb.svg)](https://crates.io/crates/embedded-hal-nb)
22
[![crates.io](https://img.shields.io/crates/v/embedded-hal-nb.svg)](https://crates.io/crates/embedded-hal-nb)
33
[![Documentation](https://docs.rs/embedded-hal-nb/badge.svg)](https://docs.rs/embedded-hal-nb)
4-
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.54+-blue.svg)
4+
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.59+-blue.svg)
55

66
# `embedded-hal-nb`
77

@@ -17,7 +17,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
1717

1818
## Minimum Supported Rust Version (MSRV)
1919

20-
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
20+
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
2121
compile with older versions but that may change in any new patch release.
2222

2323
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.

embedded-hal/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4040
*** This is (also) an alpha release with breaking changes (sorry) ***
4141

4242
### Changed
43-
- The Minimum Supported Rust Version (MSRV) is now 1.54.0
43+
- The Minimum Supported Rust Version (MSRV) is now 1.59.0
4444
- `spi`: unify all traits into `SpiReadBus`, `SpiWriteBus` and `SpiBus` (read-write).
4545
- `spi`: Add `SpiDevice` trait to represent a single device in a (possibly shared) bus, with managed chip-select (CS) pin.
4646
- `spi`: Clarify that implementations are allowed to return before operations are finished, add `flush` to wait until finished.

embedded-hal/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
categories = ["asynchronous", "embedded", "hardware-support", "no-std"]
88
description = " A Hardware Abstraction Layer (HAL) for embedded systems "
99
documentation = "https://docs.rs/embedded-hal"
10-
edition = "2018"
10+
edition = "2021"
1111
keywords = ["hal", "IO"]
1212
license = "MIT OR Apache-2.0"
1313
name = "embedded-hal"

embedded-hal/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![crates.io](https://img.shields.io/crates/d/embedded-hal.svg)](https://crates.io/crates/embedded-hal)
22
[![crates.io](https://img.shields.io/crates/v/embedded-hal.svg)](https://crates.io/crates/embedded-hal)
33
[![Documentation](https://docs.rs/embedded-hal/badge.svg)](https://docs.rs/embedded-hal)
4-
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.54+-blue.svg)
4+
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.59+-blue.svg)
55

66
# `embedded-hal`
77

@@ -15,7 +15,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
1515

1616
## Minimum Supported Rust Version (MSRV)
1717

18-
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
18+
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
1919
compile with older versions but that may change in any new patch release.
2020

2121
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.

0 commit comments

Comments
 (0)