diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-02-27 11:59:05 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-02-27 11:59:05 +0900 |
commit | 72d1d6fb3fd6841a3374199c3714c39c28801a4a (patch) | |
tree | dd6c3d4b36b72d98e9a5448ef662a43954799446 /src/lib.rs | |
download | rust-atomic-polyfill-72d1d6fb3fd6841a3374199c3714c39c28801a4a.tar.gz rust-atomic-polyfill-72d1d6fb3fd6841a3374199c3714c39c28801a4a.tar.bz2 rust-atomic-polyfill-72d1d6fb3fd6841a3374199c3714c39c28801a4a.zip |
Import atomic-polyfill 1.0.1upstream/1.0.1upstream
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..c4c109b --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,9 @@ +#![no_std] + +#[cfg(reexport_core)] +pub use core::sync::atomic::*; + +#[cfg(not(reexport_core))] +mod polyfill; +#[cfg(not(reexport_core))] +pub use polyfill::*; |