Implement dummy Mutex, Condvar and RwLock
[rust-lightning] / lightning / src / lib.rs
index c84e3d2d8da24aaeb826cc2e258410d4c7c79c67..14445710655b277f32eaeb1033a475b3b3c53c9e 100644 (file)
@@ -53,3 +53,11 @@ mod prelude {
        #[cfg(feature = "hashbrown")]
        pub use self::hashbrown::{HashMap, HashSet, hash_map};
 }
+
+#[cfg(feature = "std")]
+mod sync {
+       pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard};
+}
+
+#[cfg(not(feature = "std"))]
+mod sync;