Skip to content

Commit 14b4f8c

Browse files
committed
Enable bitcoin_hashes v0.14.0
Hardware devices like the smallest binary possible, currently if one builds with `rust-bitcoin v0.32` and `rust-bip39` they get two versions of `bitcoin_hashes` in the dependency graph because we don't support `bitcoin_hashes v0.14`. Note that using `bitcoin_hashes 0.14` bumps the MSRV to Rust v1.56.1
1 parent 5bb4711 commit 14b4f8c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ serde = { version = "1.0", default-features = false, features = [ "alloc" ], opt
4949
zeroize = { version = "1.5", features = ["zeroize_derive"], optional = true }
5050

5151
# Unexported dependnecies
52-
bitcoin_hashes = { version = ">=0.12, <=0.13", default-features = false }
52+
bitcoin_hashes = { version = ">=0.12,<0.15", default-features = false }
5353
unicode-normalization = { version = "0.1.22", default-features = false, optional = true }
5454

5555
[dev-dependencies]
5656
# Enabling the "rand" feature by default to run the benches
5757
bip39 = { path = ".", features = ["rand"] }
58-
bitcoin_hashes = ">=0.12,<0.14" # enable default features for test
58+
bitcoin_hashes = ">=0.12,<0.15" # enable default features for test
5959

6060

6161
[package.metadata.docs.rs]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ The `bitcoin_hashes` range dependency effects the MSRV as follows
3535

3636
- `bitcoin_hashes v0.12`: MSRV v1.41.1
3737
- `bitcoin_hashes v0.13`: MSRV v1.48.0
38+
- `bitcoin_hashes v0.14`: MSRV v1.56.0
3839

3940
When using older version of Rust, you might have to pin the versions of several crates, for an up-to-date list refer to [`contrib/test.sh`](contrib/test.sh):
40-
41+
4142
```bash
4243
cargo update --package "bitcoin_hashes" --precise "0.12.0"
4344
cargo update --package "rand" --precise "0.6.0"

pins.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
cargo update --package "syn" --precise "1.0.109"
4+
# cargo update --package "zeroize" --precise "1.5.7"
5+
# cargo update --package "rand_isaac" --precise "0.1.0"
6+
# cargo update --package "rand" --precise "0.6.0"
7+
# cargo update --package "semver" --precise "0.8.0"

0 commit comments

Comments
 (0)