diff --git a/Cargo.toml b/Cargo.toml index f085273..04ee2a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ paste = "1" rand = "0.8" [features] -test = [] +bench = [] [package.metadata.docs.rs] all-features = true diff --git a/src/blake3.rs b/src/blake3.rs index c9d7792..cb00e6f 100644 --- a/src/blake3.rs +++ b/src/blake3.rs @@ -12,7 +12,7 @@ unsafe impl Aggregate for Hash { } } -#[cfg(all(test, feature = "test"))] +#[cfg(all(test, feature = "bench"))] mod benches { use super::*; diff --git a/src/lib.rs b/src/lib.rs index 1f6fbe5..4ecfeeb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;