From b6bd03c97d03fcf20d46b7373ec9c84890c5d8a3 Mon Sep 17 00:00:00 2001 From: rmsyn Date: Sun, 5 May 2024 21:16:05 +0000 Subject: [PATCH] msrv: bump to `1.77.0 Bumps the MSRV to `1.77.0` for `riscv`, `riscv-rt`, `riscv-peripheral`, and `riscv-semihosting` packages. The bump is required for `clippy` `cfg` checks added in `1.77.0`. --- .github/workflows/riscv-peripheral.yaml | 4 ++-- .github/workflows/riscv-rt.yaml | 4 ++-- .github/workflows/riscv-semihosting.yaml | 4 ++-- .github/workflows/riscv.yaml | 4 ++-- riscv-peripheral/CHANGELOG.md | 4 ++++ riscv-peripheral/Cargo.toml | 2 +- riscv-peripheral/README.md | 2 +- riscv-rt/CHANGELOG.md | 1 + riscv-rt/README.md | 2 +- riscv-rt/src/lib.rs | 2 +- riscv-semihosting/CHANGELOG.md | 4 ++++ riscv-semihosting/README.md | 4 ++-- riscv/CHANGELOG.md | 2 +- riscv/README.md | 2 +- riscv/src/lib.rs | 2 +- 15 files changed, 26 insertions(+), 17 deletions(-) diff --git a/.github/workflows/riscv-peripheral.yaml b/.github/workflows/riscv-peripheral.yaml index 8797a8a4..6b861837 100644 --- a/.github/workflows/riscv-peripheral.yaml +++ b/.github/workflows/riscv-peripheral.yaml @@ -11,8 +11,8 @@ jobs: build-riscv: strategy: matrix: - # All generated code should be running on stable now, MRSV is 1.75.0 - toolchain: [ stable, nightly, 1.75.0 ] + # All generated code should be running on stable now, MRSV is 1.77.0 + toolchain: [ stable, nightly, 1.77.0 ] target: - riscv32i-unknown-none-elf - riscv32imc-unknown-none-elf diff --git a/.github/workflows/riscv-rt.yaml b/.github/workflows/riscv-rt.yaml index 0c20eb31..b17765dd 100644 --- a/.github/workflows/riscv-rt.yaml +++ b/.github/workflows/riscv-rt.yaml @@ -10,8 +10,8 @@ jobs: build: strategy: matrix: - # All generated code should be running on stable now, MRSV is 1.60.0 - toolchain: [ stable, nightly, 1.60.0 ] + # All generated code should be running on stable now, MRSV is 1.77.0 + toolchain: [ stable, nightly, 1.77.0 ] target: - riscv32i-unknown-none-elf - riscv32imc-unknown-none-elf diff --git a/.github/workflows/riscv-semihosting.yaml b/.github/workflows/riscv-semihosting.yaml index 4f6da8b0..208c3c5e 100644 --- a/.github/workflows/riscv-semihosting.yaml +++ b/.github/workflows/riscv-semihosting.yaml @@ -11,8 +11,8 @@ jobs: build-riscv: strategy: matrix: - # All generated code should be running on stable now, MRSV is 1.60.0 - toolchain: [ stable, nightly, 1.60.0 ] + # All generated code should be running on stable now, MRSV is 1.77.0 + toolchain: [ stable, nightly, 1.77.0 ] target: - riscv32i-unknown-none-elf - riscv32imc-unknown-none-elf diff --git a/.github/workflows/riscv.yaml b/.github/workflows/riscv.yaml index cd03b872..e581cf2c 100644 --- a/.github/workflows/riscv.yaml +++ b/.github/workflows/riscv.yaml @@ -11,8 +11,8 @@ jobs: build-riscv: strategy: matrix: - # All generated code should be running on stable now, MRSV is 1.60.0 - toolchain: [ stable, nightly, 1.60.0 ] + # All generated code should be running on stable now, MRSV is 1.77.0 + toolchain: [ stable, nightly, 1.77.0 ] target: - riscv32i-unknown-none-elf - riscv32imc-unknown-none-elf diff --git a/riscv-peripheral/CHANGELOG.md b/riscv-peripheral/CHANGELOG.md index 78257cd0..1dbbac2f 100644 --- a/riscv-peripheral/CHANGELOG.md +++ b/riscv-peripheral/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed + +- Made `cfg` variable selection more robust for custom targets (requires MSRV bump to `1.77.0`) + ## [v0.1.0] - 2024-02-15 ### Added diff --git a/riscv-peripheral/Cargo.toml b/riscv-peripheral/Cargo.toml index e54efa9f..8784b7a8 100644 --- a/riscv-peripheral/Cargo.toml +++ b/riscv-peripheral/Cargo.toml @@ -2,7 +2,7 @@ name = "riscv-peripheral" version = "0.1.0" edition = "2021" -rust-version = "1.75" +rust-version = "1.77.0" repository = "https://github.com/rust-embedded/riscv" authors = ["The RISC-V Team "] categories = ["embedded", "hardware-support", "no-std"] diff --git a/riscv-peripheral/README.md b/riscv-peripheral/README.md index 940f4bef..83b9323f 100644 --- a/riscv-peripheral/README.md +++ b/riscv-peripheral/README.md @@ -11,7 +11,7 @@ This project is developed and maintained by the [RISC-V team][team]. ## Minimum Supported Rust Version (MSRV) -This crate is guaranteed to compile on stable Rust 1.75 and up. It *might* +This crate is guaranteed to compile on stable Rust 1.77.0 and up. It *might* compile with older versions but that may change in any new patch release. ## License diff --git a/riscv-rt/CHANGELOG.md b/riscv-rt/CHANGELOG.md index 56866394..8fae6e15 100644 --- a/riscv-rt/CHANGELOG.md +++ b/riscv-rt/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Moved all the assembly code to `asm.rs` - Use `weak` symbols for functions such as `_mp_hook` or `_start_trap` - `abort` is now `weak`, so it is possible to link third-party libraries including this symbol. +- Made `cfg` variable selection more robust for custom targets (requires MSRV bump to `1.77.0`) ### Removed diff --git a/riscv-rt/README.md b/riscv-rt/README.md index 74cdfeea..ec3dafab 100644 --- a/riscv-rt/README.md +++ b/riscv-rt/README.md @@ -11,7 +11,7 @@ This project is developed and maintained by the [RISC-V team][team]. ## Minimum Supported Rust Version (MSRV) -This crate is guaranteed to compile on stable Rust 1.60 and up. It *might* +This crate is guaranteed to compile on stable Rust 1.77.0 and up. It *might* compile with older versions but that may change in any new patch release. ## License diff --git a/riscv-rt/src/lib.rs b/riscv-rt/src/lib.rs index 832a9fb3..033306ce 100644 --- a/riscv-rt/src/lib.rs +++ b/riscv-rt/src/lib.rs @@ -2,7 +2,7 @@ //! //! # Minimum Supported Rust Version (MSRV) //! -//! This crate is guaranteed to compile on stable Rust 1.60 and up. It *might* +//! This crate is guaranteed to compile on stable Rust 1.77.0 and up. It *might* //! compile with older versions but that may change in any new patch release. //! //! # Features diff --git a/riscv-semihosting/CHANGELOG.md b/riscv-semihosting/CHANGELOG.md index 53333769..5db7d733 100644 --- a/riscv-semihosting/CHANGELOG.md +++ b/riscv-semihosting/CHANGELOG.md @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed + +- Made `cfg` variable selection more robust for custom targets (requires MSRV bump to `1.77.0`) + ## [v0.1.0] - 2023-01-18 - Add recommendation for `semihosting` in README.md. diff --git a/riscv-semihosting/README.md b/riscv-semihosting/README.md index 0768aeba..9e0b9cb8 100644 --- a/riscv-semihosting/README.md +++ b/riscv-semihosting/README.md @@ -35,7 +35,7 @@ While `riscv-semihosting` is a good starting point for developing semihosted app # Minimum Supported Rust Version (MSRV) -This crate is guaranteed to compile on stable Rust 1.60.0 and up. It **won't** +This crate is guaranteed to compile on stable Rust 1.77.0 and up. It **might** compile with older versions. ## License @@ -69,4 +69,4 @@ to intervene to uphold that code of conduct. [CoC]: ../CODE_OF_CONDUCT.md [team]: https://github.com/rust-embedded/wg#the-risc-v-team [`semihosting`]: https://crates.io/crates/semihosting -[`cortex-m-semihosting`]: https://docs.rs/cortex-m-semihosting \ No newline at end of file +[`cortex-m-semihosting`]: https://docs.rs/cortex-m-semihosting diff --git a/riscv/CHANGELOG.md b/riscv/CHANGELOG.md index eb9c9a42..b1f78814 100644 --- a/riscv/CHANGELOG.md +++ b/riscv/CHANGELOG.md @@ -23,7 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Made `asm::wfi`, `fence`, `fence_i` and `sfence` safe (ie, removed `unsafe` from their definitions) -- Made `cfg` variable selection more robust for custom targets +- Made `cfg` variable selection more robust for custom targets (requires MSRV bump to `1.77.0`) ## [v0.11.0] - 2024-01-14 diff --git a/riscv/README.md b/riscv/README.md index f67ac78c..3148ec1f 100644 --- a/riscv/README.md +++ b/riscv/README.md @@ -11,7 +11,7 @@ This project is developed and maintained by the [RISC-V team][team]. ## Minimum Supported Rust Version (MSRV) -This crate is guaranteed to compile on stable Rust 1.60 and up. It *might* +This crate is guaranteed to compile on stable Rust 1.77.0 and up. It *might* compile with older versions but that may change in any new patch release. ## License diff --git a/riscv/src/lib.rs b/riscv/src/lib.rs index 7eacac7a..a6ca8d79 100644 --- a/riscv/src/lib.rs +++ b/riscv/src/lib.rs @@ -2,7 +2,7 @@ //! //! # Minimum Supported Rust Version (MSRV) //! -//! This crate is guaranteed to compile on stable Rust 1.60 and up. It *might* +//! This crate is guaranteed to compile on stable Rust 1.77.0 and up. It *might* //! compile with older versions but that may change in any new patch release. //! //! # Features