mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-21 08:31:04 +00:00
fix: guard extern crate alloc with not(feature="std") to prevent E0152 in std test builds
This commit is contained in:
@@ -102,7 +102,7 @@
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#[cfg(feature = "alloc")]
|
#[cfg(all(not(feature = "std"), feature = "alloc"))]
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|
||||||
// Explicitly import core crate for no_std targets (especially wasm32v1-none)
|
// Explicitly import core crate for no_std targets (especially wasm32v1-none)
|
||||||
|
|||||||
Reference in New Issue
Block a user