diff --git a/src/lib.rs b/src/lib.rs index ac0b999..870ed57 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,6 +44,15 @@ pub mod error; #[doc(hidden)] pub use std::*; +#[cfg(target_has_atomic = "ptr")] +#[doc(hidden)] +pub mod sync { + #[cfg(not(feature = "std"))] + pub use alloc::sync::*; + #[cfg(feature = "std")] + pub use std::sync::*; +} + mod rand_helper; pub use rand_helper::*;