Merge rust-bitcoin/rust-secp256k1#460: HOT FIX: Enable "rand/std_rng" feature
4e44abc2e0
Bump version to v0.23.1 (Tobin C. Harding)c36b4375c0
Enable rand/std_rng feature (Tobin C. Harding) Pull request description: Hot fix because currently attempting to use secp256 v0.23.0 as a dependency throws a secp build error. 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. I threw a version bump patch on this too in case we want to merge and release this fix (assuming I'm not mistaken about the 0.23.0 release), its Friday afternoon right now for me so if you want to forge ahead feel free to do what ever needs doing, don't wait for me and this PR :) ACKs for top commit: apoelstra: ACK4e44abc2e0
Tree-SHA512: a76b4a94cea219f6cac3fe33efd6913b713f781917c9cdf6c5265e4021d57a91cae53ca4bb396deea654b976495843fdbad660959356669299b1c7c0b2371f80
This commit is contained in:
commit
8d84857bff
|
@ -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
|
# 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.
|
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.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "secp256k1"
|
name = "secp256k1"
|
||||||
version = "0.23.0"
|
version = "0.23.1"
|
||||||
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
|
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
|
||||||
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
|
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
|
||||||
license = "CC0-1.0"
|
license = "CC0-1.0"
|
||||||
|
@ -24,7 +24,7 @@ std = ["alloc", "secp256k1-sys/std"]
|
||||||
# allow use of Secp256k1::new and related API that requires an allocator
|
# allow use of Secp256k1::new and related API that requires an allocator
|
||||||
alloc = ["secp256k1-sys/alloc"]
|
alloc = ["secp256k1-sys/alloc"]
|
||||||
bitcoin-hashes-std = ["bitcoin_hashes/std"]
|
bitcoin-hashes-std = ["bitcoin_hashes/std"]
|
||||||
rand-std = ["rand/std"]
|
rand-std = ["rand/std", "rand/std_rng"]
|
||||||
recovery = ["secp256k1-sys/recovery"]
|
recovery = ["secp256k1-sys/recovery"]
|
||||||
lowmemory = ["secp256k1-sys/lowmemory"]
|
lowmemory = ["secp256k1-sys/lowmemory"]
|
||||||
global-context = ["std"]
|
global-context = ["std"]
|
||||||
|
|
Loading…
Reference in New Issue