From c9eee70ce66a28cc0475948c44d51b567fde69e0 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Tue, 24 Oct 2023 21:55:19 -0500 Subject: [PATCH] ci: change MSRV to 1.63.0 --- .github/workflows/cont_integration.yml | 23 +++----------- README.md | 44 ++++++-------------------- crates/bdk/Cargo.toml | 4 +-- crates/bdk/README.md | 2 +- crates/bitcoind_rpc/Cargo.toml | 2 +- crates/chain/Cargo.toml | 2 +- 6 files changed, 19 insertions(+), 58 deletions(-) diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index 4d60f15b97..1892242ad0 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -12,7 +12,7 @@ jobs: rust: - version: stable clippy: true - - version: 1.57.0 # MSRV + - version: 1.63.0 # MSRV features: - --no-default-features - --all-features @@ -28,25 +28,12 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2.2.1 - name: Pin dependencies for MSRV - if: matrix.rust.version == '1.57.0' + if: matrix.rust.version == '1.63.0' run: | - cargo update -p log --precise "0.4.18" - cargo update -p tempfile --precise "3.6.0" - cargo update -p rustls:0.21.7 --precise "0.21.1" - cargo update -p rustls:0.20.9 --precise "0.20.8" - cargo update -p tokio:1.33.0 --precise "1.29.1" - cargo update -p tokio-util --precise "0.7.8" - cargo update -p flate2:1.0.27 --precise "1.0.26" - cargo update -p reqwest --precise "0.11.18" - cargo update -p h2 --precise "0.3.20" - cargo update -p rustls-webpki:0.100.3 --precise "0.100.1" - cargo update -p rustls-webpki:0.101.6 --precise "0.101.1" - cargo update -p zip:0.6.6 --precise "0.6.2" - cargo update -p time --precise "0.3.13" - cargo update -p cc --precise "1.0.81" - cargo update -p byteorder --precise "1.4.3" - cargo update -p webpki --precise "0.22.2" + cargo update -p zip --precise "0.6.2" + cargo update -p time --precise "0.3.20" cargo update -p jobserver --precise "0.1.26" + cargo update -p reqwest --precise "0.11.19" - name: Build run: cargo build ${{ matrix.features }} - name: Test diff --git a/README.md b/README.md index 5e2cec6d5e..087c4e68cb 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ CI Status API Docs - Rustc Version 1.57.0+ + Rustc Version 1.63.0+ Chat on Discord

@@ -60,45 +60,19 @@ Fully working examples of how to use these components are in `/example-crates`: [`bdk_chain`]: https://docs.rs/bdk-chain/ ## Minimum Supported Rust Version (MSRV) -This library should compile with any combination of features with Rust 1.57.0. +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 -# log 0.4.19 has MSRV 1.60.0+ -cargo update -p log --precise "0.4.18" -# tempfile 3.7.0 has MSRV 1.63.0+ -cargo update -p tempfile --precise "3.6.0" -# rustls 0.21.7 has MSRV 1.60.0+ -cargo update -p rustls:0.21.7 --precise "0.21.1" -# rustls 0.20.9 has MSRV 1.60.0+ -cargo update -p rustls:0.20.9 --precise "0.20.8" -# tokio 1.33 has MSRV 1.63.0+ -cargo update -p tokio:1.33.0 --precise "1.29.1" -# tokio-util 0.7.9 doesn't build with MSRV 1.57.0 -cargo update -p tokio-util --precise "0.7.8" -# flate2 1.0.27 has MSRV 1.63.0+ -cargo update -p flate2:1.0.27 --precise "1.0.26" -# reqwest 0.11.19 has MSRV 1.63.0+ -cargo update -p reqwest --precise "0.11.18" -# h2 0.3.21 has MSRV 1.63.0+ -cargo update -p h2 --precise "0.3.20" -# rustls-webpki 0.100.3 has MSRV 1.60.0+ -cargo update -p rustls-webpki:0.100.3 --precise "0.100.1" -# rustls-webpki 0.101.2 has MSRV 1.60.0+ -cargo update -p rustls-webpki:0.101.6 --precise "0.101.1" -# zip 0.6.6 has MSRV 1.59.0+ -cargo update -p zip:0.6.6 --precise "0.6.2" -# time 0.3.14 has MSRV 1.59.0+ -cargo update -p time --precise "0.3.13" -# cc 1.0.82 has MSRV 1.61.0+ -cargo update -p cc --precise "1.0.81" -# byteorder 1.5.0 has MSRV 1.60.0+ -cargo update -p byteorder --precise "1.4.3" -# webpki 0.22.4 requires `ring:0.17.2` which has MSRV 1.61.0+ -cargo update -p webpki --precise "0.22.2" -# jobserver 0.1.27 has MSRV 1.66.0+ +# zip 0.6.3 has MSRV 1.64.0+ +cargo update -p zip --precise "0.6.2" +# time 0.3.21 has MSRV 1.65.0+ +cargo update -p time --precise "0.3.20" +# jobserver 0.1.27 has MSRV 1.66.0 cargo update -p jobserver --precise "0.1.26" +# reqwest 0.11.20 has MSRV > 1.63.0+ +cargo update -p reqwest --precise "0.11.19" ``` ## License diff --git a/crates/bdk/Cargo.toml b/crates/bdk/Cargo.toml index 354a7d1e0b..6a4aa496a3 100644 --- a/crates/bdk/Cargo.toml +++ b/crates/bdk/Cargo.toml @@ -10,7 +10,7 @@ readme = "README.md" license = "MIT OR Apache-2.0" authors = ["Bitcoin Dev Kit Developers"] edition = "2021" -rust-version = "1.57" +rust-version = "1.63" [dependencies] log = "0.4" @@ -45,7 +45,7 @@ dev-getrandom-wasm = ["getrandom/js"] [dev-dependencies] lazy_static = "1.4" -env_logger = "0.7" +env_logger = { version = "0.7", default-features = false } assert_matches = "1.5.0" [package.metadata.docs.rs] diff --git a/crates/bdk/README.md b/crates/bdk/README.md index f911a4ea6d..fa23f20a23 100644 --- a/crates/bdk/README.md +++ b/crates/bdk/README.md @@ -13,7 +13,7 @@ CI Status API Docs - Rustc Version 1.57.0+ + Rustc Version 1.63.0+ Chat on Discord

diff --git a/crates/bitcoind_rpc/Cargo.toml b/crates/bitcoind_rpc/Cargo.toml index 7b91be1f3c..bc629854e4 100644 --- a/crates/bitcoind_rpc/Cargo.toml +++ b/crates/bitcoind_rpc/Cargo.toml @@ -2,7 +2,7 @@ name = "bdk_bitcoind_rpc" version = "0.1.0" edition = "2021" -rust-version = "1.57" +rust-version = "1.63" homepage = "https://bitcoindevkit.org" repository = "https://github.com/bitcoindevkit/bdk" documentation = "https://docs.rs/bdk_bitcoind_rpc" diff --git a/crates/chain/Cargo.toml b/crates/chain/Cargo.toml index 70748893a3..621bc3c646 100644 --- a/crates/chain/Cargo.toml +++ b/crates/chain/Cargo.toml @@ -2,7 +2,7 @@ name = "bdk_chain" version = "0.6.0" edition = "2021" -rust-version = "1.57" +rust-version = "1.63" homepage = "https://bitcoindevkit.org" repository = "https://github.com/bitcoindevkit/bdk" documentation = "https://docs.rs/bdk_chain"