From 7c418c38f85778b1fb22f3b370862a87c9204ee9 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Sat, 30 Dec 2023 12:28:29 +1100 Subject: [PATCH] Pin build deps to avoid MSRV bump --- .github/workflows/ci.yml | 2 +- Cargo.toml | 6 ++++++ README.md | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b95838..8c4c8b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 75b4e01..a667cfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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.9.6 and memchr to 2.5 until we bump our MSRV above 1.60 +regex = "=1.9.6" +memchr = "=2.5" [features] default = ["critical-section-impl"] diff --git a/README.md b/README.md index d54dd8d..889e351 100644 --- a/README.md +++ b/README.md @@ -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.