2020-09-22 16:03:43 +00:00
|
|
|
|
[package]
|
2022-07-29 19:58:35 +00:00
|
|
|
|
name = "embassy-executor"
|
2024-01-11 21:57:29 +00:00
|
|
|
|
version = "0.5.0"
|
2022-06-18 00:15:48 +00:00
|
|
|
|
edition = "2021"
|
2022-10-07 10:41:56 +00:00
|
|
|
|
license = "MIT OR Apache-2.0"
|
2022-11-22 13:48:42 +00:00
|
|
|
|
description = "async/await executor designed for embedded usage"
|
|
|
|
|
repository = "https://github.com/embassy-rs/embassy"
|
2024-01-11 23:32:47 +00:00
|
|
|
|
documentation = "https://docs.embassy.dev/embassy-executor"
|
2022-11-22 13:48:42 +00:00
|
|
|
|
categories = [
|
|
|
|
|
"embedded",
|
|
|
|
|
"no-std",
|
|
|
|
|
"asynchronous",
|
|
|
|
|
]
|
2022-07-29 19:58:35 +00:00
|
|
|
|
|
2022-03-04 16:45:01 +00:00
|
|
|
|
[package.metadata.embassy_docs]
|
2022-07-29 19:58:35 +00:00
|
|
|
|
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-executor-v$VERSION/embassy-executor/src/"
|
|
|
|
|
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-executor/src/"
|
2023-12-21 13:57:49 +00:00
|
|
|
|
features = ["defmt"]
|
2022-03-04 16:45:01 +00:00
|
|
|
|
flavors = [
|
2023-04-06 20:39:27 +00:00
|
|
|
|
{ name = "std", target = "x86_64-unknown-linux-gnu", features = ["arch-std", "executor-thread"] },
|
|
|
|
|
{ name = "wasm", target = "wasm32-unknown-unknown", features = ["arch-wasm", "executor-thread"] },
|
|
|
|
|
{ name = "cortex-m", target = "thumbv7em-none-eabi", features = ["arch-cortex-m", "executor-thread", "executor-interrupt"] },
|
|
|
|
|
{ name = "riscv32", target = "riscv32imac-unknown-none-elf", features = ["arch-riscv32", "executor-thread"] },
|
2022-03-04 16:45:01 +00:00
|
|
|
|
]
|
|
|
|
|
|
2022-11-23 13:49:40 +00:00
|
|
|
|
[package.metadata.docs.rs]
|
2023-04-06 20:39:27 +00:00
|
|
|
|
default-target = "thumbv7em-none-eabi"
|
|
|
|
|
targets = ["thumbv7em-none-eabi"]
|
2023-12-21 13:57:49 +00:00
|
|
|
|
features = ["defmt", "arch-cortex-m", "executor-thread", "executor-interrupt"]
|
2022-11-23 13:49:40 +00:00
|
|
|
|
|
2023-11-24 21:39:08 +00:00
|
|
|
|
[dependencies]
|
|
|
|
|
defmt = { version = "0.3", optional = true }
|
|
|
|
|
log = { version = "0.4.14", optional = true }
|
|
|
|
|
rtos-trace = { version = "0.1.2", optional = true }
|
|
|
|
|
|
2023-12-06 23:43:18 +00:00
|
|
|
|
embassy-executor-macros = { version = "0.4.0", path = "../embassy-executor-macros" }
|
2024-01-11 21:47:05 +00:00
|
|
|
|
embassy-time-driver = { version = "0.1.0", path = "../embassy-time-driver", optional = true }
|
|
|
|
|
embassy-time-queue-driver = { version = "0.1.0", path = "../embassy-time-queue-driver", optional = true }
|
2023-11-24 21:39:08 +00:00
|
|
|
|
critical-section = "1.1"
|
|
|
|
|
|
2023-12-22 18:05:16 +00:00
|
|
|
|
document-features = "0.2.7"
|
|
|
|
|
|
2023-11-24 21:39:08 +00:00
|
|
|
|
# needed for riscv
|
|
|
|
|
# remove when https://github.com/rust-lang/rust/pull/114499 is merged
|
|
|
|
|
portable-atomic = { version = "1.5", optional = true }
|
|
|
|
|
|
|
|
|
|
# arch-cortex-m dependencies
|
|
|
|
|
cortex-m = { version = "0.7.6", optional = true }
|
|
|
|
|
|
|
|
|
|
# arch-wasm dependencies
|
|
|
|
|
wasm-bindgen = { version = "0.2.82", optional = true }
|
|
|
|
|
js-sys = { version = "0.3", optional = true }
|
|
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
|
critical-section = { version = "1.1", features = ["std"] }
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 16:03:43 +00:00
|
|
|
|
[features]
|
2023-04-02 23:18:27 +00:00
|
|
|
|
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## Enable nightly-only features
|
|
|
|
|
nightly = ["embassy-executor-macros/nightly"]
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
turbowakers = []
|
|
|
|
|
|
2024-01-11 21:47:05 +00:00
|
|
|
|
## Use the executor-integrated `embassy-time` timer queue.
|
|
|
|
|
integrated-timers = ["dep:embassy-time-driver", "dep:embassy-time-queue-driver"]
|
2023-12-22 18:05:16 +00:00
|
|
|
|
|
|
|
|
|
#! ### Architecture
|
2023-04-02 23:18:27 +00:00
|
|
|
|
_arch = [] # some arch was picked
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## std
|
2023-08-14 06:22:22 +00:00
|
|
|
|
arch-std = ["_arch", "critical-section/std"]
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## Cortex-M
|
2023-04-02 23:18:27 +00:00
|
|
|
|
arch-cortex-m = ["_arch", "dep:cortex-m"]
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## RISC-V 32
|
2023-11-14 21:32:48 +00:00
|
|
|
|
arch-riscv32 = ["_arch", "dep:portable-atomic"]
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## WASM
|
2023-08-14 06:22:22 +00:00
|
|
|
|
arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys"]
|
2023-04-02 23:18:27 +00:00
|
|
|
|
|
2023-12-22 18:05:16 +00:00
|
|
|
|
#! ### Executor
|
|
|
|
|
|
|
|
|
|
## Enable the thread-mode executor (using WFE/SEV in Cortex-M, WFI in other embedded archs)
|
2023-04-02 23:18:27 +00:00
|
|
|
|
executor-thread = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## Enable the interrupt-mode executor (available in Cortex-M only)
|
2023-04-02 23:18:27 +00:00
|
|
|
|
executor-interrupt = []
|
2021-07-12 01:29:09 +00:00
|
|
|
|
|
2023-12-22 18:05:16 +00:00
|
|
|
|
#! ### Task Arena Size
|
|
|
|
|
#! Sets the [task arena](#task-arena) size. Necessary if you’re not using `nightly`.
|
|
|
|
|
#!
|
|
|
|
|
#! <details>
|
|
|
|
|
#! <summary>Preconfigured Task Arena Sizes:</summary>
|
|
|
|
|
#! <!-- rustdoc requires the following blank line for the feature list to render correctly! -->
|
|
|
|
|
#!
|
2021-03-02 20:14:58 +00:00
|
|
|
|
|
2023-11-24 21:39:08 +00:00
|
|
|
|
# BEGIN AUTOGENERATED CONFIG FEATURES
|
|
|
|
|
# Generated by gen_config.py. DO NOT EDIT.
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 64
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-64 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 128
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-128 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 192
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-192 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 256
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-256 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 320
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-320 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 384
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-384 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 512
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-512 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 640
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-640 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 768
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-768 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 1024
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-1024 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 1280
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-1280 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 1536
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-1536 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 2048
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-2048 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 2560
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-2560 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 3072
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-3072 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 4096 (default)
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-4096 = [] # Default
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 5120
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-5120 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 6144
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-6144 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 8192
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-8192 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 10240
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-10240 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 12288
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-12288 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 16384
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-16384 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 20480
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-20480 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 24576
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-24576 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 32768
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-32768 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 40960
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-40960 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 49152
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-49152 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 65536
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-65536 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 81920
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-81920 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 98304
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-98304 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 131072
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-131072 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 163840
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-163840 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 196608
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-196608 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 262144
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-262144 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 327680
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-327680 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 393216
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-393216 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 524288
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-524288 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 655360
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-655360 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 786432
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-786432 = []
|
2023-12-22 18:05:16 +00:00
|
|
|
|
## 1048576
|
2023-11-24 21:39:08 +00:00
|
|
|
|
task-arena-size-1048576 = []
|
2023-04-02 23:18:27 +00:00
|
|
|
|
|
2023-11-24 21:39:08 +00:00
|
|
|
|
# END AUTOGENERATED CONFIG FEATURES
|
2023-12-22 18:05:16 +00:00
|
|
|
|
|
2024-01-11 21:47:05 +00:00
|
|
|
|
#! </details>
|