2020-09-22 16:03:43 +00:00
|
|
|
[package]
|
2022-07-29 19:58:35 +00:00
|
|
|
name = "embassy-executor"
|
2023-08-10 21:15:29 +00:00
|
|
|
version = "0.2.1"
|
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"
|
|
|
|
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-08-14 06:32:26 +00:00
|
|
|
features = ["nightly", "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-08-14 06:32:26 +00:00
|
|
|
features = ["nightly", "defmt", "arch-cortex-m", "executor-thread", "executor-interrupt"]
|
2022-11-23 13:49:40 +00:00
|
|
|
|
2020-09-22 16:03:43 +00:00
|
|
|
[features]
|
2023-04-02 23:18:27 +00:00
|
|
|
|
|
|
|
# Architecture
|
|
|
|
_arch = [] # some arch was picked
|
2023-08-14 06:22:22 +00:00
|
|
|
arch-std = ["_arch", "critical-section/std"]
|
2023-04-02 23:18:27 +00:00
|
|
|
arch-cortex-m = ["_arch", "dep:cortex-m"]
|
|
|
|
arch-xtensa = ["_arch"]
|
|
|
|
arch-riscv32 = ["_arch"]
|
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
|
|
|
|
|
|
|
# Enable the thread-mode executor (using WFE/SEV in Cortex-M, WFI in other embedded archs)
|
|
|
|
executor-thread = []
|
|
|
|
# Enable the interrupt-mode executor (available in Cortex-M only)
|
|
|
|
executor-interrupt = []
|
2021-07-12 01:29:09 +00:00
|
|
|
|
2022-02-11 23:24:04 +00:00
|
|
|
# Enable nightly-only features
|
2022-08-17 21:40:16 +00:00
|
|
|
nightly = []
|
2022-02-11 23:24:04 +00:00
|
|
|
|
2023-03-30 15:55:55 +00:00
|
|
|
turbowakers = []
|
|
|
|
|
2022-08-17 21:40:16 +00:00
|
|
|
integrated-timers = ["dep:embassy-time"]
|
2021-03-02 20:14:58 +00:00
|
|
|
|
2022-08-16 04:42:08 +00:00
|
|
|
# Trace interrupt invocations with rtos-trace.
|
2022-08-23 12:57:45 +00:00
|
|
|
rtos-trace-interrupt = ["rtos-trace", "embassy-macros/rtos-trace-interrupt"]
|
2022-08-16 04:42:08 +00:00
|
|
|
|
2020-09-22 16:03:43 +00:00
|
|
|
[dependencies]
|
2021-11-15 16:08:51 +00:00
|
|
|
defmt = { version = "0.3", optional = true }
|
2021-09-10 22:10:46 +00:00
|
|
|
log = { version = "0.4.14", optional = true }
|
2022-08-09 20:25:42 +00:00
|
|
|
rtos-trace = { version = "0.1.2", optional = true }
|
2020-11-01 16:17:24 +00:00
|
|
|
|
2022-07-29 19:58:35 +00:00
|
|
|
futures-util = { version = "0.3.17", default-features = false }
|
2023-07-05 21:54:45 +00:00
|
|
|
embassy-macros = { version = "0.2.0", path = "../embassy-macros" }
|
|
|
|
embassy-time = { version = "0.1.2", path = "../embassy-time", optional = true}
|
2022-08-14 21:16:06 +00:00
|
|
|
atomic-polyfill = "1.0.1"
|
|
|
|
critical-section = "1.1"
|
2023-05-31 23:32:11 +00:00
|
|
|
static_cell = "1.1"
|
2020-11-01 16:17:24 +00:00
|
|
|
|
2023-04-02 23:18:27 +00:00
|
|
|
# arch-cortex-m dependencies
|
|
|
|
cortex-m = { version = "0.7.6", optional = true }
|
|
|
|
|
|
|
|
# arch-wasm dependencies
|
2022-08-23 17:55:49 +00:00
|
|
|
wasm-bindgen = { version = "0.2.82", optional = true }
|
|
|
|
js-sys = { version = "0.3", optional = true }
|