fix: guard extern crate alloc with not(feature="std") to prevent E0152 in std test builds

This commit is contained in:
2026-04-23 02:04:49 +03:00
parent 0a75fdd839
commit 5d546231a1
+1 -1
View File
@@ -102,7 +102,7 @@
////////////////////////////////////////////////////////////////////////////////
#[cfg(feature = "alloc")]
#[cfg(all(not(feature = "std"), feature = "alloc"))]
extern crate alloc;
// Explicitly import core crate for no_std targets (especially wasm32v1-none)