Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Commit 0f5bf5c

Browse files
Add back std feature flag, and fix small error in test configure gate
1 parent 511b428 commit 0f5bf5c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ disable-cache-padding = [
5050
"maitake-sync?/no-cache-pad",
5151
]
5252
alloc = []
53+
std = [
54+
"alloc"
55+
]
5356
maitake-sync-0_2 = [
5457
"dep:maitake-sync",
5558
]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub mod export {
2929
pub use const_init::ConstInit;
3030
}
3131

32-
#[cfg(test)]
32+
#[cfg(all(test, feature = "alloc"))]
3333
mod test {
3434
use core::{ops::Deref, time::Duration};
3535

0 commit comments

Comments
 (0)