X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Flib.rs;h=ba6d6bc71910e53ad37236dc30b6e19cd947a4d9;hb=1aa1d69461c90822672adb0b11ce2419ddf63cf2;hp=66e6554f79589b6c1075003095427628577436ae;hpb=70673734e62fc3eb917aa22cf54d4cf2e807a0ba;p=rust-lightning diff --git a/lightning/src/lib.rs b/lightning/src/lib.rs index 66e6554f..ba6d6bc7 100644 --- a/lightning/src/lib.rs +++ b/lightning/src/lib.rs @@ -78,9 +78,11 @@ pub mod ln; pub mod routing; #[cfg(feature = "std")] -use std::io; +/// Re-export of either `core2::io` or `std::io`, depending on the `std` feature flag. +pub use std::io; #[cfg(not(feature = "std"))] -use core2::io; +/// Re-export of either `core2::io` or `std::io`, depending on the `std` feature flag. +pub use core2::io; #[cfg(not(feature = "std"))] mod io_extras { @@ -177,7 +179,7 @@ mod sync { #[cfg(test)] pub use debug_sync::*; #[cfg(not(test))] - pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard}; + pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard}; #[cfg(not(test))] pub use crate::util::fairrwlock::FairRwLock; }