Skip to content

Commit b347ccb

Browse files
committed
no_std
1 parent 89d92c9 commit b347ccb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ecmascript_atomics/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Copyright of the originating code is owned by Firefox authors and Mozilla,
66
// modifications by Aapo Alasuutari.
77

8+
#![no_std]
9+
810
//! # Racy atomic operations
911
//!
1012
//! This library provides atomic operations that match the ECMAScript
@@ -80,8 +82,9 @@
8082
mod generated;
8183
mod unordered_copy;
8284

83-
use core::{cell::UnsafeCell, marker::PhantomData, mem::MaybeUninit, ptr::NonNull};
84-
use std::hint::assert_unchecked;
85+
use core::{
86+
cell::UnsafeCell, hint::assert_unchecked, marker::PhantomData, mem::MaybeUninit, ptr::NonNull,
87+
};
8588

8689
use generated::*;
8790
use unordered_copy::*;

0 commit comments

Comments
 (0)