From 4d71f432ad05cd8cce50b13cf6de6a1422f3b401 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 22 Sep 2025 00:47:08 +0200 Subject: Update manifests to satisfy new checks. --- embassy-executor/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'embassy-executor') diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml index f6dce5c0e..61d060630 100644 --- a/embassy-executor/Cargo.toml +++ b/embassy-executor/Cargo.toml @@ -123,6 +123,12 @@ rustversion = "1.0.21" ## Enable nightly-only features nightly = ["embassy-executor-macros/nightly"] +## Enable defmt logging +defmt = ["dep:defmt"] + +## Enable log logging +log = ["dep:log"] + # Enables turbo wakers, which requires patching core. Not surfaced in the docs by default due to # being an complicated advanced and undocumented feature. # See: https://github.com/embassy-rs/embassy/pull/1263 -- cgit From 0850f3b537feb66160b721c280d07d7c85518151 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 22 Sep 2025 01:00:38 +0200 Subject: Update Rust. --- embassy-executor/tests/ui/spawn_nonsend.stderr | 6 +++--- embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'embassy-executor') diff --git a/embassy-executor/tests/ui/spawn_nonsend.stderr b/embassy-executor/tests/ui/spawn_nonsend.stderr index 25bd7d78d..5a3131602 100644 --- a/embassy-executor/tests/ui/spawn_nonsend.stderr +++ b/embassy-executor/tests/ui/spawn_nonsend.stderr @@ -9,7 +9,7 @@ warning: unused import: `core::future::Future` error[E0277]: `*mut ()` cannot be sent between threads safely --> tests/ui/spawn_nonsend.rs:13:13 | -7 | #[embassy_executor::task] + 7 | #[embassy_executor::task] | ------------------------- within this `impl Sized` ... 13 | s.spawn(task(core::ptr::null_mut()).unwrap()); @@ -21,7 +21,7 @@ error[E0277]: `*mut ()` cannot be sent between threads safely note: required because it's used within this closure --> tests/ui/spawn_nonsend.rs:7:1 | -7 | #[embassy_executor::task] + 7 | #[embassy_executor::task] | ^^^^^^^^^^^^^^^^^^^^^^^^^ note: required because it appears within the type `impl Sized` --> src/raw/mod.rs @@ -31,7 +31,7 @@ note: required because it appears within the type `impl Sized` note: required because it appears within the type `impl Sized` --> tests/ui/spawn_nonsend.rs:7:1 | -7 | #[embassy_executor::task] + 7 | #[embassy_executor::task] | ^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `SendSpawner::spawn` --> src/spawner.rs diff --git a/embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr b/embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr index d987a4b95..033395584 100644 --- a/embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr +++ b/embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr @@ -4,7 +4,7 @@ error[E0133]: call to unsafe function `std::ptr::const_ptr::::rea 7 | (&x as *const i32).read(); | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function | - = note: for more information, see + = note: for more information, see = note: consult the function's documentation for information on how to avoid undefined behavior note: an unsafe function restricts its caller, but its body is safe by default --> tests/ui/unsafe_op_in_unsafe_task.rs:5:1 -- cgit From d5e4558f1807a99a10636efcc1ff6ec514b07d56 Mon Sep 17 00:00:00 2001 From: Dániel Buga Date: Tue, 23 Sep 2025 16:23:18 +0200 Subject: Fix docs --- embassy-executor/src/raw/mod.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'embassy-executor') diff --git a/embassy-executor/src/raw/mod.rs b/embassy-executor/src/raw/mod.rs index 9f36c60bc..dbd70cbf4 100644 --- a/embassy-executor/src/raw/mod.rs +++ b/embassy-executor/src/raw/mod.rs @@ -564,8 +564,6 @@ impl Executor { /// /// # Safety /// - /// You must call `initialize` before calling this method. - /// /// You must NOT call `poll` reentrantly on the same executor. /// /// In particular, note that `poll` may call the pender synchronously. Therefore, you -- cgit From 03d0637d6eed2fe9d44f077aa9ad39bdc8631304 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 26 Sep 2025 21:21:53 +0200 Subject: Update nightly. --- embassy-executor/tests/ui/spawn_nonsend.rs | 2 -- embassy-executor/tests/ui/spawn_nonsend.stderr | 22 +++++++--------------- 2 files changed, 7 insertions(+), 17 deletions(-) (limited to 'embassy-executor') diff --git a/embassy-executor/tests/ui/spawn_nonsend.rs b/embassy-executor/tests/ui/spawn_nonsend.rs index 601041941..a06c0b37a 100644 --- a/embassy-executor/tests/ui/spawn_nonsend.rs +++ b/embassy-executor/tests/ui/spawn_nonsend.rs @@ -1,7 +1,5 @@ #![cfg_attr(feature = "nightly", feature(impl_trait_in_assoc_type))] -use core::future::Future; - use embassy_executor::SendSpawner; #[embassy_executor::task] diff --git a/embassy-executor/tests/ui/spawn_nonsend.stderr b/embassy-executor/tests/ui/spawn_nonsend.stderr index 5a3131602..31efadd49 100644 --- a/embassy-executor/tests/ui/spawn_nonsend.stderr +++ b/embassy-executor/tests/ui/spawn_nonsend.stderr @@ -1,27 +1,19 @@ -warning: unused import: `core::future::Future` - --> tests/ui/spawn_nonsend.rs:3:5 - | -3 | use core::future::Future; - | ^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default - error[E0277]: `*mut ()` cannot be sent between threads safely - --> tests/ui/spawn_nonsend.rs:13:13 + --> tests/ui/spawn_nonsend.rs:11:13 | - 7 | #[embassy_executor::task] + 5 | #[embassy_executor::task] | ------------------------- within this `impl Sized` ... -13 | s.spawn(task(core::ptr::null_mut()).unwrap()); +11 | s.spawn(task(core::ptr::null_mut()).unwrap()); | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut ()` cannot be sent between threads safely | | | required by a bound introduced by this call | = help: within `impl Sized`, the trait `Send` is not implemented for `*mut ()` note: required because it's used within this closure - --> tests/ui/spawn_nonsend.rs:7:1 + --> tests/ui/spawn_nonsend.rs:5:1 | - 7 | #[embassy_executor::task] + 5 | #[embassy_executor::task] | ^^^^^^^^^^^^^^^^^^^^^^^^^ note: required because it appears within the type `impl Sized` --> src/raw/mod.rs @@ -29,9 +21,9 @@ note: required because it appears within the type `impl Sized` | pub unsafe fn _spawn_async_fn(&'static self, future: FutFn) -> Result, SpawnError> | ^^^^^^^^^^ note: required because it appears within the type `impl Sized` - --> tests/ui/spawn_nonsend.rs:7:1 + --> tests/ui/spawn_nonsend.rs:5:1 | - 7 | #[embassy_executor::task] + 5 | #[embassy_executor::task] | ^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `SendSpawner::spawn` --> src/spawner.rs -- cgit