From 939e8ca77ae4530c27db7634abdbb5430e85380e Mon Sep 17 00:00:00 2001 From: Johannes Russek <247199+jrussek@users.noreply.github.com> Date: Sun, 16 Aug 2026 10:04:17 -0400 Subject: [PATCH] bump embassy-executor to 0.10 Additionally, changed to the new pattern of getting a result from the task instead of the spawner. i.e. `spawner.spawn(task.unwrap())` instead of `spawner.spawn(task).unwrap()` --- ector/Cargo.toml | 13 ++++++------- ector/examples/qmh.rs | 2 +- ector/examples/send.rs | 2 +- ector/src/lib.rs | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ector/Cargo.toml b/ector/Cargo.toml index c6fa498..e6e9add 100644 --- a/ector/Cargo.toml +++ b/ector/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "ector" -version = "0.9.0" +version = "0.10.0" description = "Ector is an open source async, no-alloc actor framework for embedded devices." documentation = "https://docs.rs/ector" readme = "../README.md" @@ -15,8 +15,8 @@ exclude = [".github"] doctest = false [dependencies] -embassy-executor = { version = "0.9", default-features = false } -embassy-sync = { version = "0.7", default-features = false } +embassy-executor = { version = "0.10", default-features = false } +embassy-sync = { version = "0.8", default-features = false } portable-atomic = { version = "1", default-features = false } log = { version = "0.4", optional = true } @@ -27,10 +27,9 @@ static_cell = "2" ector-macros = { version = "0.5.1", path = "../macros" } - [dev-dependencies] -embassy-executor = { version = "0.9", default-features = false, features = [ - "arch-std", +embassy-executor = { version = "0.10", default-features = false , features = [ + "platform-std", "executor-thread", ] } embassy-time = { version = "0.5", default-features = false, features = [ @@ -46,7 +45,7 @@ ector = { path = ".", features = ["std", "log", "time", "test-utils"] } [features] default = ["std", "log", "time"] std = [ - "embassy-executor/arch-std", + "embassy-executor/platform-std", "embassy-time/std", "critical-section/std", ] diff --git a/ector/examples/qmh.rs b/ector/examples/qmh.rs index 2c7b8b5..fdda0e6 100644 --- a/ector/examples/qmh.rs +++ b/ector/examples/qmh.rs @@ -70,7 +70,7 @@ pub mod qmh_actor { ) -> Result, SpawnError> { static CONTEXT: ActorContext = ActorContext::new(); let inbox = CONTEXT.address(); - spawner.spawn(actor_task(&CONTEXT, ActorQMH::new(spawner, config, inbox)))?; + spawner.spawn(actor_task(&CONTEXT, ActorQMH::new(spawner, config, inbox))?); Ok(inbox) } diff --git a/ector/examples/send.rs b/ector/examples/send.rs index 657cd5b..010b2f8 100644 --- a/ector/examples/send.rs +++ b/ector/examples/send.rs @@ -19,7 +19,7 @@ async fn main(s: embassy_executor::Spawner) { let send_spawner = s.make_send(); // CriticalSectionRawMutex makes the address `Send` let server_addr = actor!(s, server_0, Server, Server, CriticalSectionRawMutex); - send_spawner.spawn(send_task(server_addr)).unwrap(); + send_spawner.spawn(send_task(server_addr).unwrap()); } pub struct Server; diff --git a/ector/src/lib.rs b/ector/src/lib.rs index 3fae2c8..545805a 100644 --- a/ector/src/lib.rs +++ b/ector/src/lib.rs @@ -148,7 +148,7 @@ macro_rules! spawn_context { } let address = $context.address(); - $spawner.spawn($name(&$context, $instance)).unwrap(); + $spawner.spawn($name(&$context, $instance).unwrap()); address }}; }