From 1847112b954acd580a21f5b26d688339f5b67883 Mon Sep 17 00:00:00 2001 From: G8XSU <3442979+G8XSU@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:42:19 -0700 Subject: [PATCH 1/3] Downgrade mockito to satisfy MSRV --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e840df3..3eee4d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,6 +34,6 @@ prost-build = { version = "0.11.3" } reqwest = { version = "0.11.13", default-features = false, features = ["rustls-tls", "blocking"] } [dev-dependencies] -mockito = "0.31.1" +mockito = "0.28.0" proptest = "1.1.0" tokio = { version = "1.22.0", features = ["macros"]} From 0e3d11547f16b4515cacad282626c2e036e6b3a6 Mon Sep 17 00:00:00 2001 From: G8XSU <3442979+G8XSU@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:42:35 -0700 Subject: [PATCH 2/3] Check CI build with 1.63.0 as MSRV --- .github/workflows/build.yml | 10 +++++++++- README.md | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a72eae..18862dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,10 +6,12 @@ jobs: build: strategy: matrix: - toolchain: [ stable, beta ] + toolchain: [ stable, beta, 1.63.0 ] # 1.63.0 is current MSRV for vss-client include: - toolchain: stable check-fmt: true + - toolchain: 1.63.0 + msrv: true runs-on: ubuntu-latest steps: - name: Checkout source code @@ -20,6 +22,12 @@ jobs: run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }} rustup override set ${{ matrix.toolchain }} + - name: Pin packages to allow for MSRV + if: matrix.msrv + run: | + cargo update -p proptest --precise "1.2.0" --verbose # proptest 1.3.0 requires rustc 1.64.0 + cargo update -p regex --precise "1.9.6" --verbose # regex 1.10.0 requires rustc 1.65.0 + cargo update -p tokio --precise "1.38.1" --verbose # tokio v1.39.0 requires rustc 1.70 or newer - name: Build on Rust ${{ matrix.toolchain }} run: cargo build --verbose --color always - name: Check formatting diff --git a/README.md b/README.md index cca0604..89efac0 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,6 @@ simplify the development process for Lightning wallets by providing a secure mea and manage the essential state required for Lightning Network (LN) operations. Learn more [here](https://github.com/lightningdevkit/vss-server/blob/main/README.md). + +## MSRV +The Minimum Supported Rust Version (MSRV) is currently 1.63.0. \ No newline at end of file From 3b093a454a6c7d9b868561b8ccc3f3bd6053678f Mon Sep 17 00:00:00 2001 From: G8XSU <3442979+G8XSU@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:55:13 -0700 Subject: [PATCH 3/3] Add 1.63.0 as package.rust-version --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 3eee4d5..f4c97db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "vss-client" version = "0.2.2" +rust-version = "1.63.0" license = "MIT OR Apache-2.0" edition = "2021" homepage = "https://lightningdevkit.org/"