diff options
Diffstat (limited to 'rtic-sync/src/lib.rs')
| -rw-r--r-- | rtic-sync/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rtic-sync/src/lib.rs b/rtic-sync/src/lib.rs index f884588..c2f323f 100644 --- a/rtic-sync/src/lib.rs +++ b/rtic-sync/src/lib.rs @@ -1,6 +1,6 @@ //! Synchronization primitives for asynchronous contexts. -#![no_std] +#![cfg_attr(not(loom), no_std)] #![deny(missing_docs)] #[cfg(feature = "defmt-03")] @@ -11,6 +11,11 @@ pub mod channel; pub use portable_atomic; pub mod signal; +mod unsafecell; + #[cfg(test)] #[macro_use] extern crate std; + +#[cfg(loom)] +mod loom_cs; |
