mirror of
https://github.com/rust-embedded/embedded-hal.git
synced 2026-03-22 15:14:05 +00:00
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 <dirbaio@dirbaio.net>
This commit is contained in:
6
.github/bors.toml
vendored
6
.github/bors.toml
vendored
@@ -5,9 +5,9 @@ status = [
|
||||
"test (stable, x86_64-unknown-linux-gnu)",
|
||||
"test (stable, thumbv6m-none-eabi)",
|
||||
"test (stable, thumbv7m-none-eabi)",
|
||||
"test (1.54.0, x86_64-unknown-linux-gnu)",
|
||||
"test (1.54.0, thumbv6m-none-eabi)",
|
||||
"test (1.54.0, thumbv7m-none-eabi)",
|
||||
"test (1.59.0, x86_64-unknown-linux-gnu)",
|
||||
"test (1.59.0, thumbv6m-none-eabi)",
|
||||
"test (1.59.0, thumbv7m-none-eabi)",
|
||||
"test (nightly, x86_64-unknown-linux-gnu)",
|
||||
"test (nightly, thumbv6m-none-eabi)",
|
||||
"test (nightly, thumbv7m-none-eabi)",
|
||||
|
||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
# All generated code should be running on stable now
|
||||
rust:
|
||||
- stable
|
||||
- 1.54.0 # MSRV
|
||||
- 1.59.0 # MSRV
|
||||
- nightly
|
||||
|
||||
# The default target we're compiling on and for
|
||||
|
||||
@@ -72,7 +72,7 @@ on crates.io.
|
||||
|
||||
## Minimum Supported Rust Version (MSRV)
|
||||
|
||||
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
|
||||
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
|
||||
compile with older versions but that may change in any new patch release.
|
||||
|
||||
See [here](docs/msrv.md) for details on how the MSRV may be upgraded.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "embedded-can"
|
||||
version = "0.4.1"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
description = "HAL traits for Controller Area Network (CAN) devices."
|
||||
categories = ["embedded", "hardware-support", "no-std"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[](https://crates.io/crates/embedded-can)
|
||||
[](https://crates.io/crates/embedded-can)
|
||||
[](https://docs.rs/embedded-can)
|
||||

|
||||

|
||||
|
||||
# `embedded-can`
|
||||
|
||||
@@ -15,7 +15,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
|
||||
|
||||
## Minimum Supported Rust Version (MSRV)
|
||||
|
||||
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
|
||||
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
|
||||
compile with older versions but that may change in any new patch release.
|
||||
|
||||
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = [
|
||||
categories = ["asynchronous", "embedded", "hardware-support", "no-std"]
|
||||
description = "An asynchronous Hardware Abstraction Layer (HAL) for embedded systems"
|
||||
documentation = "https://docs.rs/embedded-hal-async"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
keywords = ["hal", "IO"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
name = "embedded-hal-async"
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = [
|
||||
categories = ["embedded", "hardware-support", "no-std"]
|
||||
description = "Bus/Device connection mechanisms for embedded-hal, a Hardware Abstraction Layer (HAL) for embedded systems"
|
||||
documentation = "https://docs.rs/embedded-hal-bus"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
keywords = ["hal", "IO"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
name = "embedded-hal-bus"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[](https://crates.io/crates/embedded-hal-bus)
|
||||
[](https://crates.io/crates/embedded-hal-bus)
|
||||
[](https://docs.rs/embedded-hal-bus)
|
||||

|
||||

|
||||
|
||||
# `embedded-hal-bus`
|
||||
|
||||
@@ -27,7 +27,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
|
||||
## Minimum Supported Rust Version (MSRV)
|
||||
|
||||
|
||||
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
|
||||
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
|
||||
compile with older versions but that may change in any new patch release.
|
||||
|
||||
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "embedded-hal-nb"
|
||||
version = "1.0.0-alpha.1"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
categories = ["embedded", "hardware-support", "no-std"]
|
||||
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" }
|
||||
nb = "1"
|
||||
|
||||
[dev-dependencies]
|
||||
cortex-m-rt = "=0.7.1" # 0.7.2 bumped its MSRV higher than embedded-hal's
|
||||
cortex-m-rt = "0.7"
|
||||
stm32f1 = { version = "0.15", features = ["stm32f103", "rt"] }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[](https://crates.io/crates/embedded-hal-nb)
|
||||
[](https://crates.io/crates/embedded-hal-nb)
|
||||
[](https://docs.rs/embedded-hal-nb)
|
||||

|
||||

|
||||
|
||||
# `embedded-hal-nb`
|
||||
|
||||
@@ -17,7 +17,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
|
||||
|
||||
## Minimum Supported Rust Version (MSRV)
|
||||
|
||||
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
|
||||
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
|
||||
compile with older versions but that may change in any new patch release.
|
||||
|
||||
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.
|
||||
|
||||
@@ -40,7 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
*** This is (also) an alpha release with breaking changes (sorry) ***
|
||||
|
||||
### Changed
|
||||
- The Minimum Supported Rust Version (MSRV) is now 1.54.0
|
||||
- The Minimum Supported Rust Version (MSRV) is now 1.59.0
|
||||
- `spi`: unify all traits into `SpiReadBus`, `SpiWriteBus` and `SpiBus` (read-write).
|
||||
- `spi`: Add `SpiDevice` trait to represent a single device in a (possibly shared) bus, with managed chip-select (CS) pin.
|
||||
- `spi`: Clarify that implementations are allowed to return before operations are finished, add `flush` to wait until finished.
|
||||
|
||||
@@ -7,7 +7,7 @@ authors = [
|
||||
categories = ["asynchronous", "embedded", "hardware-support", "no-std"]
|
||||
description = " A Hardware Abstraction Layer (HAL) for embedded systems "
|
||||
documentation = "https://docs.rs/embedded-hal"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
keywords = ["hal", "IO"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
name = "embedded-hal"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[](https://crates.io/crates/embedded-hal)
|
||||
[](https://crates.io/crates/embedded-hal)
|
||||
[](https://docs.rs/embedded-hal)
|
||||

|
||||

|
||||
|
||||
# `embedded-hal`
|
||||
|
||||
@@ -15,7 +15,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
|
||||
|
||||
## Minimum Supported Rust Version (MSRV)
|
||||
|
||||
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
|
||||
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
|
||||
compile with older versions but that may change in any new patch release.
|
||||
|
||||
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.
|
||||
|
||||
Reference in New Issue
Block a user