2020-09-22 16:03:43 +00:00
|
|
|
[package]
|
2022-07-29 19:58:35 +00:00
|
|
|
name = "embassy-executor"
|
2022-11-23 13:53:18 +00:00
|
|
|
version = "0.1.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/"
|
2022-10-02 20:24:59 +00:00
|
|
|
features = ["nightly", "defmt"]
|
2022-03-04 16:45:01 +00:00
|
|
|
flavors = [
|
|
|
|
{ name = "std", target = "x86_64-unknown-linux-gnu", features = ["std"] },
|
|
|
|
{ name = "wasm", target = "wasm32-unknown-unknown", features = ["wasm"] },
|
|
|
|
{ name = "thumbv6m-none-eabi", target = "thumbv6m-none-eabi", features = [] },
|
|
|
|
{ name = "thumbv7m-none-eabi", target = "thumbv7m-none-eabi", features = [] },
|
|
|
|
{ name = "thumbv7em-none-eabi", target = "thumbv7em-none-eabi", features = [] },
|
|
|
|
{ name = "thumbv7em-none-eabihf", target = "thumbv7em-none-eabihf", features = [] },
|
|
|
|
{ name = "thumbv8m.base-none-eabi", target = "thumbv8m.base-none-eabi", features = [] },
|
|
|
|
{ name = "thumbv8m.main-none-eabi", target = "thumbv8m.main-none-eabi", features = [] },
|
|
|
|
{ name = "thumbv8m.main-none-eabihf", target = "thumbv8m.main-none-eabihf", features = [] },
|
|
|
|
]
|
|
|
|
|
2022-11-23 13:49:40 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
features = ["std", "nightly", "defmt"]
|
|
|
|
|
2020-09-22 16:03:43 +00:00
|
|
|
[features]
|
2023-04-02 23:18:27 +00:00
|
|
|
|
|
|
|
# Architecture
|
|
|
|
_arch = [] # some arch was picked
|
|
|
|
arch-std = ["_arch", "critical-section/std"]
|
|
|
|
arch-cortex-m = ["_arch", "dep:cortex-m"]
|
|
|
|
arch-xtensa = ["_arch"]
|
|
|
|
arch-riscv32 = ["_arch"]
|
|
|
|
arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys"]
|
|
|
|
|
|
|
|
# Enable creating a `Pender` from an arbitrary function pointer callback.
|
|
|
|
pender-callback = []
|
|
|
|
|
|
|
|
# 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 }
|
2022-08-23 12:57:45 +00:00
|
|
|
embassy-macros = { version = "0.1.0", path = "../embassy-macros" }
|
2022-08-17 21:40:16 +00:00
|
|
|
embassy-time = { version = "0.1.0", path = "../embassy-time", optional = true}
|
2022-08-14 21:16:06 +00:00
|
|
|
atomic-polyfill = "1.0.1"
|
|
|
|
critical-section = "1.1"
|
2022-08-22 13:51:44 +00:00
|
|
|
static_cell = "1.0"
|
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 }
|