Implement dummy Mutex, Condvar and RwLock
[rust-lightning] / lightning / src / lib.rs
index 1088063540c97f51e03d0bcebbcde1773fb83970..14445710655b277f32eaeb1033a475b3b3c53c9e 100644 (file)
@@ -54,6 +54,10 @@ mod prelude {
        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;