Skip to content

Commit 46ef0ed

Browse files
committed
Enable bitcoin_hashes v0.14.0
Hardware devices like the smallest binary possible, currently if one builds with latest `rust-bitcoin` and `rust-bip39` they get two versions of `bitcoin_hashes` in the dependency graph because we don't support the latest `bitcoin_hashes`. We use a range dependency for `bitcoin_hashes`. We can support the latest version with no code changes. However using the latest version causes the MSRV to increase. Add the latest version of `bitcoin_hashes` to the range dependency.
1 parent b100bf3 commit 46ef0ed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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.14", 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.14" # enable default features for test
5959

6060

6161
[package.metadata.docs.rs]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Use the `all-languages` feature to enable all languages.
3131

3232
This crate supports Rust v1.41.1 and up and works with `no_std`.
3333

34+
Using `bitcoin_hashes v0.14.0` raises the MSRV to `1.56.1`.
35+
3436
When using older version of Rust, you might have to pin the version of the
3537
`bitcoin_hashes` crate used as such:
3638
```

0 commit comments

Comments
 (0)