File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ name = "secp256k1"
22
22
path = " src/lib.rs"
23
23
24
24
[features ]
25
- unstable = []
25
+ unstable = [" recovery " , " rand-std " ]
26
26
default = [" std" ]
27
27
std = [" secp256k1-sys/std" ]
28
28
rand-std = [" rand/std" ]
Original file line number Diff line number Diff line change @@ -304,7 +304,6 @@ mod benches {
304
304
let s = Secp256k1 :: signing_only ( ) ;
305
305
let ( sk, pk) = s. generate_keypair ( & mut thread_rng ( ) ) ;
306
306
307
- let s = Secp256k1 :: new ( ) ;
308
307
bh. iter ( || {
309
308
let res = SharedSecret :: new ( & pk, & sk) ;
310
309
black_box ( res) ;
Original file line number Diff line number Diff line change @@ -363,6 +363,10 @@ mod tests {
363
363
364
364
#[ cfg( all( test, feature = "unstable" ) ) ]
365
365
mod benches {
366
+ use rand:: { thread_rng, RngCore } ;
367
+ use test:: { Bencher , black_box} ;
368
+ use super :: { Message , Secp256k1 } ;
369
+
366
370
#[ bench]
367
371
pub fn bench_recover ( bh : & mut Bencher ) {
368
372
let s = Secp256k1 :: new ( ) ;
You can’t perform that action at this time.
0 commit comments