Cargo Features

embassy-executor has no features set by default.

[dependencies]
embassy-executor = { version = "0.6.1", features = ["nightly", "turbowakers", "integrated-timers", "arch-std", "arch-cortex-m", "arch-riscv32", "arch-wasm", "arch-avr", "arch-spin", "executor-thread", "executor-interrupt", "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", "rtos-trace"] }
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

integrated-timers

Use the executor-integrated embassy-time timer queue.

Enables embassy-time-driver and embassy-time-queue-driver

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)

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

Features from optional dependencies

defmt implicit feature
log implicit feature

Enables log

log:

A lightweight logging facade for Rust

rtos-trace implicit feature

Enables rtos-trace

rtos-trace:

RTOS tracing trait