From c36b4375c020b75869ce386b3f405d3a1ed02013 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 24 Jun 2022 13:36:29 +1000 Subject: [PATCH 1/2] Enable rand/std_rng feature We recently upgraded the rand dependency and we use it behind code feature gated on "rand-std". In that code we use `thread_rng` but this is only available if the "std_rng" feature is turned on, however in non-dev builds we do not enable this feature, we have a "rand-std" feature that enables "rand/std", it should also enable "std_rng". Enable "rand/std_rng" in the "rand-std" feature. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 921b8a8..616611c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ std = ["alloc", "secp256k1-sys/std"] # allow use of Secp256k1::new and related API that requires an allocator alloc = ["secp256k1-sys/alloc"] bitcoin-hashes-std = ["bitcoin_hashes/std"] -rand-std = ["rand/std"] +rand-std = ["rand/std", "rand/std_rng"] recovery = ["secp256k1-sys/recovery"] lowmemory = ["secp256k1-sys/lowmemory"] global-context = ["std"] From 4e44abc2e06b94082f0b245332883e08eb953c96 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 24 Jun 2022 14:00:50 +1000 Subject: [PATCH 2/2] Bump version to v0.23.1 We just applied a hot fix to the 0.23.0 released code to fix the features enabled in `rand` when our "rand-std" feature is enabled. This requires a bump of the patch version for release. Bump the version and add a changelog entry. --- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7903653..910138d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.23.1 - 2022-06-24 + +[Enable "rand/std_rng" feature](https://github.com/rust-bitcoin/rust-secp256k1/pull/460) when the crate's "rnd-std" feature is enabled. + # 0.23.0 - 2022-06-21 The major change in this version is the increase of the Minimum Supported Rust Version (MSRV) from 1.29 to 1.41.1, this is a big change because it introduces Rust Edition 2018 to the codebase along with all the benefits that brings. diff --git a/Cargo.toml b/Cargo.toml index 616611c..96e520f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "secp256k1" -version = "0.23.0" +version = "0.23.1" authors = [ "Dawid Ciężarkiewicz ", "Andrew Poelstra " ] license = "CC0-1.0"