From b0a1bfb0cb2141fb2156af9744965b05fe6976e0 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Mon, 25 Nov 2024 09:25:07 -0800 Subject: [PATCH] ci: pin msrv dep version for rustls --- .github/workflows/cont_integration.yml | 4 ++++ README.md | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index 2e53940..0c5b0f6 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -28,6 +28,10 @@ jobs: uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.rust }} + - name: Pin dependencies for MSRV + if: matrix.rust == '1.63.0' + run: | + cargo update -p rustls --precise "0.23.17" - name: Test run: cargo test --verbose --all-features - name: Setup iptables for the timeout test diff --git a/README.md b/README.md index 2e51838..0186486 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,14 @@ [Rust Blog]: https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers. + +## Minimum Supported Rust Version (MSRV) + +This library should compile with any combination of features with Rust 1.63.0. + +To build with the MSRV you will need to pin dependencies as follows: + +```shell +cargo update -p rustls --precise "0.23.17" +``` +