From 2b47d406e1230c6ea6373efe6213f254e69af54a Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 30 Jul 2024 16:55:53 -0500 Subject: [PATCH] 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. --- Cargo.toml | 4 ++-- README.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cc521ff..7cfa2b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,13 +49,13 @@ serde = { version = "1.0", default-features = false, features = [ "alloc" ], opt zeroize = { version = "1.5", features = ["zeroize_derive"], optional = true } # Unexported dependnecies -bitcoin_hashes = { version = ">=0.12, <=0.13", default-features = false } +bitcoin_hashes = { version = ">=0.12, <0.15", default-features = false } unicode-normalization = { version = "=0.1.22", default-features = false, optional = true } [dev-dependencies] # Enabling the "rand" feature by default to run the benches bip39 = { path = ".", features = ["rand"] } -bitcoin_hashes = ">=0.12,<0.14" # enable default features for test +bitcoin_hashes = ">=0.12,<0.15" # enable default features for test [package.metadata.docs.rs] diff --git a/README.md b/README.md index aecd61f..5b52a92 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ Use the `all-languages` feature to enable all languages. This crate supports Rust v1.41.1 and up and works with `no_std`. +Using `bitcoin_hashes v0.14.0` raises the MSRV to `1.56.1`. + When using older version of Rust, you might have to pin the version of the `bitcoin_hashes` crate used as such: ```