251 Commits

Author SHA1 Message Date
Ulf Lilleengen
9651cfca51
Merge pull request #4373 from fg-cfh/fix/name-new-tasks
embassy-executor: rtos-trace: fix task naming for new tasks
2025-07-11 20:51:10 +00:00
Ralph Ursprung
a52ca758ac
embassy-executor: add release automation using cargo-release
this requires you to install [`cargo-release`].
note that this does not include a URL pointing to the diff on GitHub as
is usually done in changelogs since `embassy` is a mono-repo and the GH
UI doesn't offer a commit view per folder (see the [GH feature request]
for this).

[`cargo-release`]: https://crates.io/crates/cargo-release
[GH feature request]: https://github.com/orgs/community/discussions/162131
2025-07-08 23:05:48 +02:00
Ralph Ursprung
1c515937ff
prepare changelog for embassy-executor v0.8.0 2025-07-08 23:05:48 +02:00
Dario Nieuwenhuis
0c136c7b05 executor: mark Spawner::for_current_executor() as unsafe.
It's unsound with manually-created Contexts, see https://github.com/embassy-rs/embassy/issues/4379
2025-07-08 22:39:53 +02:00
Dario Nieuwenhuis
2fe2a0cf9c excutor: fix Send unsoundness with -> impl Future tasks. 2025-07-08 20:27:35 +02:00
Florian Grandel
b861dd1728
embassy-executor: rtos-trace: fix task naming for new tasks
Tasks that are spawned after starting SystemViewer were not named. This
change ensures that tasks spawned while SystemViewer is running will be
properly named, too.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2025-07-06 19:21:12 +02:00
Dario Nieuwenhuis
72248a601a Update Rust nightly, stable. 2025-07-04 00:23:22 +02:00
Dario Nieuwenhuis
8a23a4dfa4
Merge pull request #4266 from 0e4ef622/task-rpit
Allow `-> impl Future<Output = ()>` in #[task]
2025-06-22 21:27:56 +00:00
Matthew Tran
3cef4f0c04 Update tests 2025-06-01 12:36:46 -05:00
Matthew Tran
0d83fbbb57 Add diagnostic::on_unimplemented for nightly 2025-06-01 10:32:24 -05:00
Dario Nieuwenhuis
ad5a14fe85
Merge pull request #4244 from janderholm/master
executor: Make state implementations and their conditions match
2025-06-01 12:16:50 +00:00
Matthew Tran
b06a708f81 Mention ! in diagnostic 2025-05-29 05:54:25 -05:00
Matthew Tran
dbff432e19 Add test for -> impl Future<Output = !> 2025-05-29 05:18:16 -05:00
Matthew Tran
a4d4f62a1e Allow -> impl Future<Output = ()> in #[task] 2025-05-28 23:37:17 -05:00
Robin Mueller
5a07ea5d85 Add support for Cortex-A/R 2025-05-28 17:00:42 +02:00
Johan Anderholm
0f9a7a057f executor: Make state implementations and their conditions match
Use u8 for state_atomics and state_critical_section since that
is all that is needed. Change arm condition to "32" since that is what
is used and required.
2025-05-23 18:27:14 +02:00
Yuri Astrakhan
ef0f29f0ed Update defmt dependencies 2025-05-18 20:52:09 +02:00
Kat Perez
ebb6132f5f rustfmt 2025-05-08 16:31:47 -04:00
Kat Perez
3ffa2e4f3f remove unnecessary trace flags 2025-05-08 16:30:06 -04:00
Kat Perez
dfaab013eb move SpawnerTraceExt back into Spawner 2025-05-08 14:35:43 -04:00
Kat Perez
e968c47636 update TraceExt trait name for Spawner 2025-05-08 14:04:54 -04:00
Kat Perez
194a3044ac remove unused task_id 2025-05-08 13:46:41 -04:00
Kat Perez
3b873bb6bb implement TaskRefTrace for tracing-only fields in TaskRef 2025-05-08 13:40:32 -04:00
Kat Perez
462d04c6d5 move TaskTracker to trace 2025-05-08 13:35:34 -04:00
Kat Perez
8a8deb704f move spawn_named into trace.rs through TraceExt trait 2025-05-08 11:29:44 -04:00
Kat Perez
56b5e35c60 change rtos-trace feature flag on tracing API to trace feature flag 2025-05-08 10:58:59 -04:00
Kat Perez
8f18810ec6 remove unused tracing API 2025-05-08 10:58:27 -04:00
Kat Perez
b3e13cc6de make tracing API functions internal 2025-05-08 10:58:07 -04:00
Kat Perez
f2429c212e fix whitespace in the imports in trace.rs 2025-05-06 11:55:58 -04:00
Kat Perez
6085916714 use an intrusive linked list in TaskHeader to track tasks 2025-05-06 11:47:04 -04:00
Kat Perez
f4e0cbb7cc add ID field to TaskHeader 2025-05-06 09:59:27 -04:00
Kat Perez
54b3fb6e7a remove name from TaskRegistry and retrieve from task header instead 2025-05-06 09:27:19 -04:00
Kat Perez
61f0f889a0 add get/set for task name 2025-05-06 09:23:39 -04:00
Kat Perez
05d52decb2 add name to TaskHeader 2025-05-06 09:04:21 -04:00
Kat Perez
bbffd2b3f9 whitespace in the documentation 2025-05-06 08:27:46 -04:00
Kat Perez
032898adf5 add a stub implementation for spawn_named
When rtos-trace is not enabled, spawn_named will use spawn instead
2025-05-06 08:27:46 -04:00
Kat Perez
f8f9c38b2e add a task registry to tracing infrastructure 2025-05-06 08:27:46 -04:00
Phil-hacker
3a85ecebef fix rustfmt 2025-04-08 22:30:17 +02:00
Phil-hacker
ce40a39a87 fix compilation on anything not using the feature arch-avr 2025-04-08 22:15:05 +02:00
Phil-hacker
66a02a4f8d fix the avr executor 2025-04-08 22:10:17 +02:00
Phil-hacker
1a4b1a9476 update avr_device 2025-04-08 22:07:36 +02:00
Dario Nieuwenhuis
1eec964637
Merge pull request #4046 from outfoxxed/main-macro-executor
executor: add executor selection to #[embassy_executor::main]
2025-04-07 13:08:33 +00:00
outfoxxed
ef8d168df6
executor: add executor selection to #[embassy_executor::main] 2025-04-06 18:52:32 -07:00
Dario Nieuwenhuis
cee3b49344
Merge pull request #4049 from kaspar030/executor_id
embassy-executor: introduce `Executor::id()`, `Spawner::executor_id()`
2025-04-06 21:55:04 +00:00
Dániel Buga
c04b433991
embassy-sync, executor/wasm: don't select critical-section impl for std 2025-04-06 22:43:32 +02:00
Åke Amcoff
ac4f4ee807 disable critical-section/std for arch-std in embassy-executor 2025-04-05 18:36:04 +02:00
Kaspar Schleiser
89f3566419 embassy_executor: introduce Spawner::executor_id() 2025-04-04 22:32:55 +02:00
Kaspar Schleiser
3f87ce6f50 embassy-executor: introduce Executor::id() 2025-04-04 22:32:55 +02:00
James Munns
b7e1b1ca94 Fix some intra-doc links 2025-04-03 10:35:00 +02:00
James Munns
ef3c1b87d1 Minor docs improvements 2025-04-01 14:35:21 +02:00