Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
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
6 changes: 6 additions & 0 deletions riscv-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- Bump MSRV to 1.81 due to `core::error::Error` trait
- Mark `result::Error` as `#[non_exhaustive]` to allow non-breaking new variants
- Renamed crate to `riscv-types` as per [#351](https://github.com/rust-embedded/riscv/issues/351)

### Added

- Implement `core::error::Error` for `result::Error`

## riscv-pac [v0.2.0] - 2024-10-19

### Added
Expand Down
2 changes: 1 addition & 1 deletion riscv-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "riscv-types"
version = "0.1.0"
edition = "2021"
rust-version = "1.60"
rust-version = "1.81"
repository = "https://github.com/rust-embedded/riscv"
authors = ["The RISC-V Team <[email protected]>"]
categories = ["embedded", "hardware-support", "no-std"]
Expand Down
2 changes: 1 addition & 1 deletion riscv-types/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.81 and up. It *might*
compile with older versions but that may change in any new patch release.

## License
Expand Down
3 changes: 3 additions & 0 deletions riscv-types/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub type Result<T> = core::result::Result<T, Error>;

/// Represents error variants for the library.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[non_exhaustive]
pub enum Error {
/// Attempted out-of-bounds access.
IndexOutOfBounds {
Expand Down Expand Up @@ -56,3 +57,5 @@ impl fmt::Display for Error {
}
}
}

impl core::error::Error for Error {}
Loading