aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor
diff options
context:
space:
mode:
authorDániel Buga <[email protected]>2023-11-06 15:21:53 +0100
committerDániel Buga <[email protected]>2023-11-06 17:35:02 +0100
commit8d8d50cc7a97fa65976e9dc1a82a58de29e7eb64 (patch)
treede37efc3b4fd19122a26584f8a2bb735ef703387 /embassy-executor
parent5948d934d3b6700595d2c1e094b5c9c9e5928257 (diff)
Yeet core::sync::atomic, remove futures-util dep
Diffstat (limited to 'embassy-executor')
-rw-r--r--embassy-executor/CHANGELOG.md4
-rw-r--r--embassy-executor/Cargo.toml1
-rw-r--r--embassy-executor/src/arch/riscv32.rs2
3 files changed, 5 insertions, 2 deletions
diff --git a/embassy-executor/CHANGELOG.md b/embassy-executor/CHANGELOG.md
index cade48f02..ad3e2e957 100644
--- a/embassy-executor/CHANGELOG.md
+++ b/embassy-executor/CHANGELOG.md
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7 7
8## 0.3.2
9
10- Use `atomic-polyfill` for `riscv32`
11
8## 0.3.1 - 2023-11-01 12## 0.3.1 - 2023-11-01
9 13
10- Fix spurious "Found waker not created by the Embassy executor" error in recent nightlies. 14- Fix spurious "Found waker not created by the Embassy executor" error in recent nightlies.
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml
index 8e36637a3..f59d0f977 100644
--- a/embassy-executor/Cargo.toml
+++ b/embassy-executor/Cargo.toml
@@ -57,7 +57,6 @@ defmt = { version = "0.3", optional = true }
57log = { version = "0.4.14", optional = true } 57log = { version = "0.4.14", optional = true }
58rtos-trace = { version = "0.1.2", optional = true } 58rtos-trace = { version = "0.1.2", optional = true }
59 59
60futures-util = { version = "0.3.17", default-features = false }
61embassy-macros = { version = "0.2.1", path = "../embassy-macros" } 60embassy-macros = { version = "0.2.1", path = "../embassy-macros" }
62embassy-time = { version = "0.1.5", path = "../embassy-time", optional = true} 61embassy-time = { version = "0.1.5", path = "../embassy-time", optional = true}
63atomic-polyfill = "1.0.1" 62atomic-polyfill = "1.0.1"
diff --git a/embassy-executor/src/arch/riscv32.rs b/embassy-executor/src/arch/riscv32.rs
index 40c6877e2..e5c0ff2ec 100644
--- a/embassy-executor/src/arch/riscv32.rs
+++ b/embassy-executor/src/arch/riscv32.rs
@@ -6,8 +6,8 @@ pub use thread::*;
6#[cfg(feature = "executor-thread")] 6#[cfg(feature = "executor-thread")]
7mod thread { 7mod thread {
8 use core::marker::PhantomData; 8 use core::marker::PhantomData;
9 use core::sync::atomic::{AtomicBool, Ordering};
10 9
10 use atomic_polyfill::{AtomicBool, Ordering};
11 #[cfg(feature = "nightly")] 11 #[cfg(feature = "nightly")]
12 pub use embassy_macros::main_riscv as main; 12 pub use embassy_macros::main_riscv as main;
13 13