Skip to content

Commit ce7bbd0

Browse files
committed
revert to MSRV 1.59 + use optional critical-section
1 parent 9ca97d8 commit ce7bbd0

File tree

6 files changed

+6
-11
lines changed

6 files changed

+6
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
continue-on-error: ${{ matrix.experimental || false }}
1212
strategy:
1313
matrix:
14-
# All generated code should be running on stable now, MRSV is 1.60.0
15-
rust: [nightly, stable, 1.60.0]
14+
# All generated code should be running on stable now, MRSV is 1.59.0
15+
rust: [nightly, stable, 1.59.0]
1616

1717
include:
1818
# Nightly is only for reference and allowed to fail

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
### Changed
1818

1919
- Update `riscv` dependency to version 0.8
20-
- Update Minimum Supported Rust Version to 1.60
2120
- Regenerate code with `svd2rust` v0.19.0
2221

2322
### Fixed

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ categories = ["embedded", "hardware-support", "no-std"]
77
description = "With svd2rust generated peripherals for Freedom E310 MCU's."
88
keywords = ["riscv", "register", "peripheral"]
99
license = "ISC"
10-
rust-version = "1.60"
10+
rust-version = "1.59"
1111

1212
[dependencies]
13-
critical-section = "1.1.1"
13+
critical-section = { version = "1.1.1", optional = true }
1414
vcell = "0.1.3"
15-
riscv = { version = "0.10.1", features = ["critical-section-single-hart"] }
1615

1716
[features]
18-
default = ["critical-section"]
19-
critical-section = []
2017
rt = []
2118
g002 = []
2219

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This project is developed and maintained by the [RISC-V team][team].
1212

1313
## Minimum Supported Rust Version (MSRV)
1414

15-
This crate is guaranteed to compile on stable Rust 1.60.0 and up. It *might*
15+
This crate is guaranteed to compile on stable Rust 1.59.0 and up. It *might*
1616
compile with older versions but that may change in any new patch release.
1717

1818
## Requirements

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![doc = "Peripheral access API for FE310 microcontrollers (generated using svd2rust v0.26.0 ( ))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next]
22
svd2rust release can be generated by cloning the svd2rust [repository], checking out the above commit, and running `cargo doc --open`.\n\n[here]: https://docs.rs/svd2rust/0.26.0/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"]
3-
#![deny(const_err)]
43
#![deny(dead_code)]
54
#![deny(improper_ctypes)]
65
#![deny(missing_docs)]

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -x
33
set -e
44

5-
# used svd2rust v0.19.0
5+
# used svd2rust v0.26.0
66
rm -rf src
77
mkdir src
88
svd2rust --target riscv -g -i e310x.svd

0 commit comments

Comments
 (0)