Skip to content

Commit e6ccedb

Browse files
Switch to portable-atomic
1 parent c1344a7 commit e6ccedb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "async-pool"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
authors = ["Daniel Stuart <[email protected]>"]
55
description = "Statically allocated pool providing a std-like Box, with async functionality."
66
repository = "https://github.com/danielstuart14/async-pool"
@@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
1010
categories = ["embedded", "no-std", "concurrency", "memory-management"]
1111

1212
[dependencies]
13-
atomic-polyfill = "1.0"
13+
portable-atomic = { version = "1.7.0", features = ["critical-section"] }
1414
as-slice-01 = { package = "as-slice", version = "0.1.5" }
1515
as-slice-02 = { package = "as-slice", version = "0.2.1" }
1616
stable_deref_trait = { version = "1.2.0", default-features = false }

src/atomic_bitset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub mod droppable_bit;
22

3-
use atomic_polyfill::{AtomicU32, Ordering};
3+
use portable_atomic::{AtomicU32, Ordering};
44

55
/// A bitset that can be used to allocate slots in a pool
66
pub struct AtomicBitset<const N: usize, const K: usize>

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
mod atomic_bitset;
44

5-
use atomic_polyfill::AtomicU32;
5+
use portable_atomic::AtomicU32;
66
use core::cell::UnsafeCell;
77
use core::future::{poll_fn, Future};
88
use core::hash::{Hash, Hasher};

0 commit comments

Comments
 (0)