mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-26 05:07:56 +00:00
fix: extern crate alloc when alloc feature active AND (no_std OR wasm32v1-none target)
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#[cfg(all(not(feature = "std"), feature = "alloc"))]
|
||||
#[cfg(all(feature = "alloc", any(not(feature = "std"), target_os = "none")))]
|
||||
extern crate alloc;
|
||||
|
||||
// Explicitly import core crate for no_std targets (especially wasm32v1-none)
|
||||
|
||||
Reference in New Issue
Block a user