From 78047b0b93595b7ffeb90417c7ab50a7c96b3002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Leegwater=20Sim=C3=B5es?= Date: Sat, 13 Jan 2024 20:33:31 +0100 Subject: [PATCH] Rename feature `test` to `bench` --- Cargo.toml | 2 +- src/blake3.rs | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;