File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ name = "secp256k1"
2222path = " src/lib.rs"
2323
2424[features ]
25- unstable = []
25+ unstable = [" recovery " , " rand-std " ]
2626default = [" std" ]
2727std = [" secp256k1-sys/std" ]
2828rand-std = [" rand/std" ]
Original file line number Diff line number Diff line change @@ -304,7 +304,6 @@ mod benches {
304304 let s = Secp256k1 :: signing_only ( ) ;
305305 let ( sk, pk) = s. generate_keypair ( & mut thread_rng ( ) ) ;
306306
307- let s = Secp256k1 :: new ( ) ;
308307 bh. iter ( || {
309308 let res = SharedSecret :: new ( & pk, & sk) ;
310309 black_box ( res) ;
Original file line number Diff line number Diff line change @@ -363,6 +363,10 @@ mod tests {
363363
364364#[ cfg( all( test, feature = "unstable" ) ) ]
365365mod benches {
366+ use rand:: { thread_rng, RngCore } ;
367+ use test:: { Bencher , black_box} ;
368+ use super :: { Message , Secp256k1 } ;
369+
366370 #[ bench]
367371 pub fn bench_recover ( bh : & mut Bencher ) {
368372 let s = Secp256k1 :: new ( ) ;
You can’t perform that action at this time.
0 commit comments