mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-20 18:56:19 +00:00
fix: extern crate alloc when alloc feature active AND (no_std OR wasm32v1-none target)
This commit is contained in:
1 parent
5d546231a1
commit
c0bdb88b70
1 file changed
+1
-1
@@ -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