Check lockorders in tests with a trivial lockorder tracker
[rust-lightning] / lightning / src / lib.rs
index 3338803f9a0c771a7ef976a0afba9bd28d6ded7f..ca18d7bb5cc0ba5ae64eadb5310e023d62b634b2 100644 (file)
@@ -143,8 +143,16 @@ mod prelude {
        pub use alloc::string::ToString;
 }
 
+#[cfg(all(feature = "std", test))]
+mod debug_sync;
+#[cfg(all(feature = "backtrace", feature = "std", test))]
+extern crate backtrace;
+
 #[cfg(feature = "std")]
 mod sync {
+       #[cfg(test)]
+       pub use debug_sync::*;
+       #[cfg(not(test))]
        pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard};
 }