]> Untitled Git - bdk/commitdiff
ci: Avoid pinning dependencies, use --precise
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Mon, 24 Jul 2023 10:44:48 +0000 (12:44 +0200)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 25 Jul 2023 11:34:23 +0000 (13:34 +0200)
Fixes #1035

.github/workflows/cont_integration.yml
README.md
crates/bdk/Cargo.toml

index d29f81c23fce8ca077c0ec7a405484a6faa87a69..d03ce9436c73462097ad27cf7a49afdd4c09f0d8 100644 (file)
@@ -27,6 +27,9 @@ jobs:
             profile: minimal
       - name: Rust Cache
         uses: Swatinem/rust-cache@v2.2.1
+      - name: Pin dependencies for MSRV
+        if: matrix.rust.version == '1.57.0'
+        run: cargo update -p log --precise "0.4.18" && cargo update -p tempfile --precise "3.6.0"
       - name: Build
         run: cargo build ${{ matrix.features }}
       - name: Test
index e50de4b84ff25c026d972731fab009dd8ca2685e..565212754db311c5d5df80f549504dcc9f7e1720 100644 (file)
--- a/README.md
+++ b/README.md
@@ -52,3 +52,15 @@ Fully working examples of how to use these components are in `/example-crates`
 [`rust-bitcoin`]: https://github.com/rust-bitcoin/rust-bitcoin
 [`esplora-client`]: https://docs.rs/esplora-client/0.3.0/esplora_client/
 [`electrum-client`]: https://docs.rs/electrum-client/0.13.0/electrum_client/
+
+## Minimum Supported Rust Version (MSRV)
+This library should compile with any combination of features with Rust 1.57.0.
+
+To build with the MSRV you will need to pin dependencies as follows:
+
+```
+# 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"
+```
index 29b478d13556ed16a1b2cd2171fea5a859e1fb16..344fb3e55ac7703ca56587f2313388bc6f79e6b3 100644 (file)
@@ -13,7 +13,7 @@ edition = "2021"
 rust-version = "1.57"
 
 [dependencies]
-log = "=0.4.18"
+log = "0.4"
 rand = "^0.8"
 miniscript = { version = "9", features = ["serde"], default-features = false }
 bitcoin = { version = "0.29", features = ["serde", "base64", "rand"], default-features = false }