diff options
| author | Dániel Buga <[email protected]> | 2023-08-12 16:00:18 +0200 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2023-08-12 18:29:56 +0200 |
| commit | 675b7fb6056d8c3dfaca759b7cd373e2f4a0e111 (patch) | |
| tree | ef4f786edd849f9ce82cffa3b1d58e939a4f53a7 /embassy-executor/Cargo.toml | |
| parent | 0727f8690c4684d0622547edee2cf9dc22215a9b (diff) | |
POC: allow custom executors
Diffstat (limited to 'embassy-executor/Cargo.toml')
| -rw-r--r-- | embassy-executor/Cargo.toml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml index ce5e2741f..182dd6937 100644 --- a/embassy-executor/Cargo.toml +++ b/embassy-executor/Cargo.toml | |||
| @@ -31,11 +31,11 @@ features = ["nightly", "defmt", "pender-callback", "arch-cortex-m", "executor-th | |||
| 31 | 31 | ||
| 32 | # Architecture | 32 | # Architecture |
| 33 | _arch = [] # some arch was picked | 33 | _arch = [] # some arch was picked |
| 34 | arch-std = ["_arch", "critical-section/std"] | 34 | arch-std = ["_arch", "critical-section/std", "thread-context"] |
| 35 | arch-cortex-m = ["_arch", "dep:cortex-m"] | 35 | arch-cortex-m = ["_arch", "dep:cortex-m"] |
| 36 | arch-xtensa = ["_arch"] | 36 | arch-xtensa = ["_arch"] |
| 37 | arch-riscv32 = ["_arch"] | 37 | arch-riscv32 = ["_arch"] |
| 38 | arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys"] | 38 | arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys", "thread-context"] |
| 39 | 39 | ||
| 40 | # Enable creating a `Pender` from an arbitrary function pointer callback. | 40 | # Enable creating a `Pender` from an arbitrary function pointer callback. |
| 41 | pender-callback = [] | 41 | pender-callback = [] |
| @@ -45,6 +45,9 @@ executor-thread = [] | |||
| 45 | # Enable the interrupt-mode executor (available in Cortex-M only) | 45 | # Enable the interrupt-mode executor (available in Cortex-M only) |
| 46 | executor-interrupt = [] | 46 | executor-interrupt = [] |
| 47 | 47 | ||
| 48 | # Pass a context to the thread-mode executor. | ||
| 49 | thread-context = [] | ||
| 50 | |||
| 48 | # Enable nightly-only features | 51 | # Enable nightly-only features |
| 49 | nightly = [] | 52 | nightly = [] |
| 50 | 53 | ||
