Skip to content

Commit 7faab65

Browse files
committed
Merge #76: Bump electrsd to 0.26 + bitcoind_25_0 and fix msrv errors
ac2fd86 ci: limit test threads to 1 (Steve Myers) 19bdeb1 replace temporary dependency on bitcoin-internals with hex-conservative (Steve Myers) c99118e bump electrsd to 0.26 + bitcoind_25_0 and fix msrv errors (Steve Myers) Pull request description: This PR bumps electrsd to 0.26 and replaces temporary dependency on `bitcoin-internals` with `hex-conservative` as done in #75. Fixed CI MSRV issues with dev dependencies blocking #75 and #74. ACKs for top commit: evanlinjin: ACK ac2fd86 tcharding: ACK ac2fd86 Tree-SHA512: 37d825aae78d1ca89806870455b97a48e5a69bbdd78adadb16f506fb4df0fe98dc3a262b8fb74b68f5c44031e76c8fa0b5304c8592bf332356a0215843a52c33
2 parents 24e4ca2 + ac2fd86 commit 7faab65

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

.github/workflows/code_coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
# For more info, see:
4545
# - https://github.com/bitcoindevkit/bdk/issues/696
4646
# - https://github.com/bitcoindevkit/bdk/pull/748#issuecomment-1242721040
47-
run: cargo test
47+
run: cargo test -- --test-threads=1
4848
- name: Run grcov
4949
run: mkdir coverage; grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '/*' -o ./coverage/lcov.info
5050
- name: Generate HTML coverage report

.github/workflows/cont_integration.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ jobs:
5151
- name: pin dependencies
5252
if: matrix.rust.version == '1.63.0'
5353
run: |
54+
cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5"
55+
cargo update -p time --precise "0.3.20"
56+
cargo update -p jobserver --precise "0.1.26"
5457
cargo update -p home --precise 0.5.5
5558
- name: Build
5659
run: cargo build --features ${{ matrix.features }} --no-default-features
5760
- name: Clippy
5861
if: ${{ matrix.rust.clippy }}
5962
run: cargo clippy --all-targets --features ${{ matrix.features }} --no-default-features -- -D warnings
6063
- name: Test
61-
run: cargo test --features ${{ matrix.features }} --no-default-features
64+
run: cargo test --features ${{ matrix.features }} --no-default-features -- --test-threads=1

Cargo.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@ path = "src/lib.rs"
1919
[dependencies]
2020
serde = { version = "1.0", features = ["derive"] }
2121
bitcoin = { version = "0.30.0", features = ["serde", "std"], default-features = false }
22-
# Temporary dependency on internals until the rust-bitcoin devs release the hex-conservative crate.
23-
bitcoin-internals = { version = "0.1.0", features = ["alloc"] }
22+
hex = { package = "hex-conservative", version = "*" }
2423
log = "^0.4"
2524
ureq = { version = "2.5.0", features = ["json"], optional = true }
2625
reqwest = { version = "0.11", optional = true, default-features = false, features = ["json"] }
2726

2827
[dev-dependencies]
2928
serde_json = "1.0"
3029
tokio = { version = "1.20.1", features = ["full"] }
31-
electrsd = { version = "0.24.0", features = ["legacy", "esplora_a33e97e1", "bitcoind_22_0"] }
32-
electrum-client = "0.16.0"
30+
electrsd = { version = "0.26.0", features = ["legacy", "esplora_a33e97e1", "bitcoind_25_0"] }
3331
lazy_static = "1.4.0"
3432

3533
[features]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ This library should compile with any combination of features with Rust 1.63.0.
1818
To build with the MSRV you will need to pin dependencies as follows:
1919

2020
```shell
21-
cargo update -p home --precise 0.5.5
21+
cargo update -p jobserver --precise "0.1.26"
2222
```

src/async.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use bitcoin::hashes::{sha256, Hash};
2020
use bitcoin::{
2121
block::Header as BlockHeader, Block, BlockHash, MerkleBlock, Script, Transaction, Txid,
2222
};
23-
use bitcoin_internals::hex::display::DisplayHex;
23+
use hex::display::DisplayHex;
2424

2525
#[allow(unused_imports)]
2626
use log::{debug, error, info, trace};

src/blocking.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use bitcoin::{
2929
block::Header as BlockHeader, Block, BlockHash, MerkleBlock, Script, Transaction, Txid,
3030
};
3131

32-
use bitcoin_internals::hex::display::DisplayHex;
32+
use hex::display::DisplayHex;
3333

3434
use crate::{BlockStatus, BlockSummary, Builder, Error, MerkleProof, OutputStatus, Tx, TxStatus};
3535

0 commit comments

Comments
 (0)