Cargo Features
embassy-executor has no features set by default.
[dependencies]
embassy-executor = { version = "0.7.0", features = ["nightly", "turbowakers", "arch-std", "arch-cortex-m", "arch-riscv32", "arch-wasm", "arch-avr", "arch-spin", "executor-thread", "executor-interrupt", "trace", "rtos-trace", "timer-item-payload-size-1", "timer-item-payload-size-2", "timer-item-payload-size-4", "timer-item-payload-size-8", "task-arena-size-64", "task-arena-size-128", "task-arena-size-192", "task-arena-size-256", "task-arena-size-320", "task-arena-size-384", "task-arena-size-512", "task-arena-size-640", "task-arena-size-768", "task-arena-size-1024", "task-arena-size-1280", "task-arena-size-1536", "task-arena-size-2048", "task-arena-size-2560", "task-arena-size-3072", "task-arena-size-4096", "task-arena-size-5120", "task-arena-size-6144", "task-arena-size-8192", "task-arena-size-10240", "task-arena-size-12288", "task-arena-size-16384", "task-arena-size-20480", "task-arena-size-24576", "task-arena-size-32768", "task-arena-size-40960", "task-arena-size-49152", "task-arena-size-65536", "task-arena-size-81920", "task-arena-size-98304", "task-arena-size-131072", "task-arena-size-163840", "task-arena-size-196608", "task-arena-size-262144", "task-arena-size-327680", "task-arena-size-393216", "task-arena-size-524288", "task-arena-size-655360", "task-arena-size-786432", "task-arena-size-1048576", "defmt", "log"] }
- nightly
-
Enable nightly-only features
Enables nightly of embassy-executor-macros
- turbowakers
-
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
- arch-std
-
std
Enables std of critical-section
- arch-cortex-m
-
Cortex-M
Enables cortex-m
arch-cortex-m dependencies
- arch-riscv32
-
RISC-V 32
- arch-wasm
-
WASM
Enables std of critical-section and js-sys and wasm-bindgen
wasm-bindgen:
arch-wasm dependencies
- arch-avr
-
AVR
Enables avr-device ^0.5.3
arch-avr dependencies
and portable-atomic
needed for AVR
- arch-spin
-
spin (architecture agnostic; never sleeps)
- executor-thread
-
Executor
Enable the thread-mode executor (using WFE/SEV in Cortex-M, WFI in other embedded archs)
- executor-interrupt
-
Enable the interrupt-mode executor (available in Cortex-M only)
- trace rtos-trace?
-
Enable tracing support (adds some overhead)
- rtos-trace = trace
-
Enable support for rtos-trace framework
Enables embassy-time-driver and rtos-trace
- _timer-item-payload timer-item-payload-size-1? timer-item-payload-size-2? timer-item-payload-size-4? timer-item-payload-size-8?
-
Timer Item Payload Size
Sets the size of the payload for timer items, allowing integrated timer implementors to store additional data in the timer item. The payload field will be aligned to this value as well. If these features are not defined, the timer item will contain no payload field. A size was picked
Affects
timer_queue::TimerQueueItem.payload
… - timer-item-payload-size-1 = _timer-item-payload
-
1 bytes
- timer-item-payload-size-2 = _timer-item-payload
-
2 bytes
- timer-item-payload-size-4 = _timer-item-payload
-
4 bytes
- timer-item-payload-size-8 = _timer-item-payload
-
8 bytes
- task-arena-size-64
-
Task Arena Size
Sets the task arena size. Necessary if you’re not using
nightly
.Preconfigured Task Arena Sizes:
BEGIN AUTOGENERATED CONFIG FEATURES Generated by gen_config.py. DO NOT EDIT. 64
- task-arena-size-128
-
128
- task-arena-size-192
-
192
- task-arena-size-256
-
256
- task-arena-size-320
-
320
- task-arena-size-384
-
384
- task-arena-size-512
-
512
- task-arena-size-640
-
640
- task-arena-size-768
-
768
- task-arena-size-1024
-
1024
- task-arena-size-1280
-
1280
- task-arena-size-1536
-
1536
- task-arena-size-2048
-
2048
- task-arena-size-2560
-
2560
- task-arena-size-3072
-
3072
- task-arena-size-4096
-
4096 (default)
Default - task-arena-size-5120
-
5120
- task-arena-size-6144
-
6144
- task-arena-size-8192
-
8192
- task-arena-size-10240
-
10240
- task-arena-size-12288
-
12288
- task-arena-size-16384
-
16384
- task-arena-size-20480
-
20480
- task-arena-size-24576
-
24576
- task-arena-size-32768
-
32768
- task-arena-size-40960
-
40960
- task-arena-size-49152
-
49152
- task-arena-size-65536
-
65536
- task-arena-size-81920
-
81920
- task-arena-size-98304
-
98304
- task-arena-size-131072
-
131072
- task-arena-size-163840
-
163840
- task-arena-size-196608
-
196608
- task-arena-size-262144
-
262144
- task-arena-size-327680
-
327680
- task-arena-size-393216
-
393216
- task-arena-size-524288
-
524288
- task-arena-size-655360
-
655360
- task-arena-size-786432
-
786432
- task-arena-size-1048576
-
1048576