Skip to content

Commit

Permalink
Merge branch '04-08-bench-rand-dev-dep' into test-bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharding committed Apr 7, 2024
2 parents e7bad94 + ec2a2cc commit 3186df1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ bitcoin_hashes = { version = ">=0.12, <=0.13", default-features = false }
unicode-normalization = { version = "=0.1.22", default-features = false, optional = true }

[dev-dependencies]
# Enabling the "rand" feature by default to run the benches
bip39 = { path = ".", features = ["rand"] }
bitcoin_hashes = ">=0.12,<0.14" # enable default features for test


Expand Down
1 change: 1 addition & 0 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fn from_entropy(b: &mut Bencher) {
});
}

#[cfg(feature = "rand")]
#[bench]
fn new_mnemonic(b: &mut Bencher) {
b.iter(|| {
Expand Down

0 comments on commit 3186df1

Please sign in to comment.