Skip to content

Commit

Permalink
msrv: bump to `1.77.0
Browse files Browse the repository at this point in the history
Bumps the MSRV to `1.77.0` for `riscv`, `riscv-rt`,
and `riscv-semihosting` packages.

The bump is required for `clippy` `cfg` checks added in `1.77.0`.
  • Loading branch information
rmsyn committed May 5, 2024
1 parent eb52de3 commit a197d47
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/riscv-rt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/riscv-semihosting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/riscv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions riscv-rt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion riscv-rt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion riscv-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions riscv-semihosting/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions riscv-semihosting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
[`cortex-m-semihosting`]: https://docs.rs/cortex-m-semihosting
2 changes: 1 addition & 1 deletion riscv/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion riscv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion riscv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a197d47

Please sign in to comment.