From ec90685324ba7c649e69b782eabc5b80b2a3f845 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Thu, 16 Jan 2025 17:41:34 -0300 Subject: [PATCH] ci(msrv): bump rust MSRV to `1.75` - bumps the MSRV on CI to 1.75. - updates the `Cargo.toml` rust-version to 1.75. - removes the guideline to pin `rustls` version, as previously required by old 1.63 MSRV. - update `README.md` badges to `1.75` MSRV. - update `clippy.toml` to `1.75` MSRV. --- .github/workflows/cont_integration.yml | 6 +----- Cargo.toml | 2 +- README.md | 13 +++---------- clippy.toml | 2 +- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index a73b344..11fbc98 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -12,7 +12,7 @@ jobs: matrix: rust: - stable # STABLE - - 1.63.0 # MSRV + - 1.75.0 # MSRV steps: - name: Checkout uses: actions/checkout@v4 @@ -28,10 +28,6 @@ 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.19" - name: Test run: cargo test --verbose --all-features - name: Setup iptables for the timeout test diff --git a/Cargo.toml b/Cargo.toml index e0fa581..ce29dcb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ documentation = "https://docs.rs/electrum-client/" description = "Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers." keywords = ["bitcoin", "electrum"] readme = "README.md" -rust-version = "1.63.0" +rust-version = "1.75.0" edition = "2021" # loosely based on https://github.com/evgeniy-scherbina/rust-electrumx-client diff --git a/README.md b/README.md index 3a1c2bc..af483b9 100644 --- a/README.md +++ b/README.md @@ -5,18 +5,11 @@ [GitHub Workflow]: https://github.com/bitcoindevkit/rust-electrum-client/actions?query=workflow%3ACI [Latest Version]: https://img.shields.io/crates/v/electrum-client.svg [crates.io]: https://crates.io/crates/electrum-client -[MSRV Badge]: https://img.shields.io/badge/rustc-1.63.0%2B-lightgrey.svg -[Rust Blog]: https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html +[MSRV Badge]: https://img.shields.io/badge/rustc-1.75.0%2B-lightgrey.svg +[Rust Blog]: https://blog.rust-lang.org/2023/12/28/Rust-1.75.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.19" -``` - +This library should compile with any combination of features with Rust 1.75.0. diff --git a/clippy.toml b/clippy.toml index e3b9960..ac9f3cd 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1 @@ -msrv="1.63.0" \ No newline at end of file +msrv="1.75.0" \ No newline at end of file