Handle no-std without sync.

This commit is contained in:
Stephen Chung 2021-01-07 22:52:20 +08:00
parent e527fc9e86
commit ec18bd26a2

View File

@ -11,7 +11,10 @@ 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;