Skip to content

Commit

Permalink
Pin build deps to avoid MSRV bump
Browse files Browse the repository at this point in the history
  • Loading branch information
9names committed Dec 30, 2023
1 parent ee855d2 commit d65170b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

include:
# Run check with MSRV as well
- rust: 1.65.0
- rust: 1.60.0

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ critical-section = "1.1"

[build-dependencies]
riscv-target = "0.1.2"
# riscv-target depends on regex, which depends on memchr.
# memchr bumped it's MSRV to 1.61 midway through 2.6.x releases
# regex increased it's MSRV to 1.65 in release 1.10.x
# pinning regex to 1.8.4 and memchr to 2.5.0 until we bump MSRV
regex = "=1.8.4"
memchr = "=2.5.0"

[features]
default = ["critical-section-impl"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Matrix: [#bl602-rust:matrix.org](https://matrix.to/#/#bl602-rust:matrix.org)

## Minimum Supported Rust Version

The minimum supported Rust version (MSRV) for this project is Rust **v1.65.0**. The
The minimum supported Rust version (MSRV) for this project is Rust **v1.60.0**. The
project might build on earlier versions, but this is the earliest version that
is expected to work.

Expand Down
6 changes: 3 additions & 3 deletions src/delay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ use embedded_hal_zero::blocking::delay::{DelayMs as DelayMsZero, DelayUs as Dela
/// bit-banging protocols, etc
#[derive(Copy, Clone)]
pub struct McycleDelay {
/// System clock frequency, used to convert clock cycles
/// into real-world time values
core_frequency: u32,
}

impl McycleDelay {
/// Constructs the delay provider based on core clock frequency `freq`
pub fn new(freq: u32) -> Self {
Self {
/// System clock frequency, used to convert clock cycles
/// into real-world time values
Self {
core_frequency: freq,
}
}
Expand Down

0 comments on commit d65170b

Please sign in to comment.