Skip to content

Commit 66a8c39

Browse files
committed
backport: fix rand-std feature for old cargo versions
There is a bugfix rust-lang/cargo#8395 which appears in cargo 1.46, after our MSRV of 1.41. This means that under 1.41, users of the rand-std feature may nondeterministically see compilation fail. In particular, users of rust-bitcoin 0.29 seem to have started seeing failures starting on 2023-01-12, where the 'rand-std' feature would be enabled in this library but 'rand' was not. This commit simply makes the 'rand' dependency explicit, to avoid the nondeterministic bug in cargo's feature resolver.
1 parent 959bd25 commit 66a8c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "secp256k1"
3-
version = "0.24.2"
3+
version = "0.24.3"
44
authors = [ "Dawid Ciężarkiewicz <[email protected]>",
55
"Andrew Poelstra <[email protected]>" ]
66
license = "CC0-1.0"
@@ -23,7 +23,7 @@ std = ["alloc", "secp256k1-sys/std"]
2323
# allow use of Secp256k1::new and related API that requires an allocator
2424
alloc = ["secp256k1-sys/alloc"]
2525
bitcoin-hashes-std = ["bitcoin_hashes/std"]
26-
rand-std = ["rand/std", "rand/std_rng"]
26+
rand-std = ["rand", "rand/std", "rand/std_rng"]
2727
recovery = ["secp256k1-sys/recovery"]
2828
lowmemory = ["secp256k1-sys/lowmemory"]
2929
global-context = ["std"]

0 commit comments

Comments
 (0)