packed_atomic/
lib.rs

1#![no_std]
2#![allow(unused)]
3
4#[macro_use]
5extern crate cfg_if as _;
6
7#[macro_use]
8extern crate core as _;
9
10#[cfg(feature = "std")]
11#[macro_use]
12extern crate std as _;
13
14#[cfg(not(target_has_atomic))]
15compile_error!("the current device does not have atomics");
16
17cfg_if! {
18    if #[cfg(feature = "std")] {
19        pub use ::std::sync::atomic::*;
20    } else {
21        pub use ::core::sync::atomic::*;
22    }
23}