projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement dummy Mutex, Condvar and RwLock
[rust-lightning]
/
lightning
/
src
/
lib.rs
diff --git
a/lightning/src/lib.rs
b/lightning/src/lib.rs
index 1088063540c97f51e03d0bcebbcde1773fb83970..14445710655b277f32eaeb1033a475b3b3c53c9e 100644
(file)
--- a/
lightning/src/lib.rs
+++ b/
lightning/src/lib.rs
@@
-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;