Fix bad import and feature specification in benchmarks.

This commit is contained in:
Isis Lovecruft 2019-10-03 23:14:49 +00:00
parent d31df0aaa8
commit dc4b77b551
No known key found for this signature in database
GPG key ID: AB41313533E8E812
2 changed files with 5 additions and 1 deletions

View file

@ -52,11 +52,15 @@ version = "0.2"
hex = "^0.3"
bincode = "^0.9"
criterion = "0.2"
rand = "0.6"
rand_os = "0.1"
[[bench]]
name = "ed25519_benchmarks"
harness = false
# This doesn't seem to work with criterion, cf. https://github.com/bheisler/criterion.rs/issues/344
# For now, we have to bench by doing `cargo bench --features="batch"`.
# required-features = ["batch"]
[features]
default = ["std", "u64_backend"]

View file

@ -22,7 +22,7 @@ mod ed25519_benches {
use ed25519_dalek::Signature;
use ed25519_dalek::verify_batch;
use rand::thread_rng;
use rand::rngs::ThreadRng;
use rand::prelude::ThreadRng;
fn sign(c: &mut Criterion) {
let mut csprng: ThreadRng = thread_rng();