From a3376482173bbc7f6be7e8f52f27ea56ccded37a Mon Sep 17 00:00:00 2001 From: Victor Koenders Date: Thu, 7 Jan 2021 15:19:40 +0100 Subject: [PATCH] Fixed an issue when compiling no_std and no_optimize on a target with no alloc::sync --- src/stdlib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stdlib.rs b/src/stdlib.rs index 165b9068..8171750b 100644 --- a/src/stdlib.rs +++ b/src/stdlib.rs @@ -11,7 +11,9 @@ mod inner { #[cfg(not(target_arch = "wasm32"))] pub use core::{i128, u128}; - pub use alloc::{borrow, boxed, format, rc, string, sync, vec}; + #[cfg(feature = "sync")] + pub use alloc::sync; + pub use alloc::{borrow, boxed, format, rc, string, vec}; pub use core_error as error;