Move `no-std` sync implementations to a folder to clean up
[rust-lightning] / lightning / src / lib.rs
index 1f3ab47b1ae3f7d2ca8802e46c267d5428e3822c..1ec4d6aa5a5eab8a5fcd0bd14f36110876bd0898 100644 (file)
@@ -180,15 +180,4 @@ mod debug_sync;
 #[cfg(all(not(feature = "_bench_unstable"), feature = "backtrace", feature = "std", test))]
 extern crate backtrace;
 
-#[cfg(feature = "std")]
-mod sync {
-       #[cfg(all(not(feature = "_bench_unstable"), test))]
-       pub use crate::debug_sync::*;
-       #[cfg(any(feature = "_bench_unstable", not(test)))]
-       pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
-       #[cfg(any(feature = "_bench_unstable", not(test)))]
-       pub use crate::util::fairrwlock::FairRwLock;
-}
-
-#[cfg(not(feature = "std"))]
 mod sync;