Skip to content

Commit

Permalink
Rename feature test to bench
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Leegwater Simões committed Jan 13, 2024
1 parent 1754f3d commit 78047b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ paste = "1"
rand = "0.8"

[features]
test = []
bench = []

[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 1 addition & 1 deletion src/blake3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ unsafe impl Aggregate for Hash {
}
}

#[cfg(all(test, feature = "test"))]
#[cfg(all(test, feature = "bench"))]
mod benches {
use super::*;

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#![deny(rustdoc::broken_intra_doc_links)]
#![feature(allocator_api)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "test", feature(test))]
#![cfg_attr(feature = "bench", feature(test))]
#![no_std]

extern crate alloc;
Expand Down

0 comments on commit 78047b0

Please sign in to comment.