2020-09-22 18:03:43 +02:00
|
|
|
[package]
|
2022-07-29 21:58:35 +02:00
|
|
|
name = "embassy-executor"
|
2023-11-01 00:17:44 +01:00
|
|
|
version = "0.3.1"
|
2022-06-18 02:15:48 +02:00
|
|
|
edition = "2021"
|
2022-10-07 12:41:56 +02:00
|
|
|
license = "MIT OR Apache-2.0"
|
2022-11-22 14:48:42 +01:00
|
|
|
description = "async/await executor designed for embedded usage"
|
|
|
|
repository = "https://github.com/embassy-rs/embassy"
|
|
|
|
categories = [
|
|
|
|
"embedded",
|
|
|
|
"no-std",
|
|
|
|
"asynchronous",
|
|
|
|
]
|
2022-07-29 21:58:35 +02:00
|
|
|
|
2022-03-04 17:45:01 +01:00
|
|
|
[package.metadata.embassy_docs]
|
2022-07-29 21:58:35 +02: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 08:32:26 +02:00
|
|
|
features = ["nightly", "defmt"]
|
2022-03-04 17:45:01 +01:00
|
|
|
flavors = [
|
2023-04-06 22:39:27 +02: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 17:45:01 +01:00
|
|
|
]
|
|
|
|
|
2022-11-23 14:49:40 +01:00
|
|
|
[package.metadata.docs.rs]
|
2023-04-06 22:39:27 +02:00
|
|
|
default-target = "thumbv7em-none-eabi"
|
|
|
|
targets = ["thumbv7em-none-eabi"]
|
2023-08-14 08:32:26 +02:00
|
|
|
features = ["nightly", "defmt", "arch-cortex-m", "executor-thread", "executor-interrupt"]
|
2022-11-23 14:49:40 +01:00
|
|
|
|
2020-09-22 18:03:43 +02:00
|
|
|
[features]
|
2023-04-03 01:18:27 +02:00
|
|
|
|
|
|
|
# Architecture
|
|
|
|
_arch = [] # some arch was picked
|
2023-08-14 08:22:22 +02:00
|
|
|
arch-std = ["_arch", "critical-section/std"]
|
2023-04-03 01:18:27 +02:00
|
|
|
arch-cortex-m = ["_arch", "dep:cortex-m"]
|
|
|
|
arch-xtensa = ["_arch"]
|
|
|
|
arch-riscv32 = ["_arch"]
|
2023-08-14 08:22:22 +02:00
|
|
|
arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys"]
|
2023-04-03 01:18:27 +02: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 03:29:09 +02:00
|
|
|
|
2022-02-12 00:24:04 +01:00
|
|
|
# Enable nightly-only features
|
2022-08-17 23:40:16 +02:00
|
|
|
nightly = []
|
2022-02-12 00:24:04 +01:00
|
|
|
|
2023-03-30 17:55:55 +02:00
|
|
|
turbowakers = []
|
|
|
|
|
2022-08-17 23:40:16 +02:00
|
|
|
integrated-timers = ["dep:embassy-time"]
|
2021-03-02 21:14:58 +01:00
|
|
|
|
2022-08-16 06:42:08 +02:00
|
|
|
# Trace interrupt invocations with rtos-trace.
|
2022-08-23 14:57:45 +02:00
|
|
|
rtos-trace-interrupt = ["rtos-trace", "embassy-macros/rtos-trace-interrupt"]
|
2022-08-16 06:42:08 +02:00
|
|
|
|
2020-09-22 18:03:43 +02:00
|
|
|
[dependencies]
|
2021-11-15 17:08:51 +01:00
|
|
|
defmt = { version = "0.3", optional = true }
|
2021-09-11 00:10:46 +02:00
|
|
|
log = { version = "0.4.14", optional = true }
|
2022-08-09 22:25:42 +02:00
|
|
|
rtos-trace = { version = "0.1.2", optional = true }
|
2020-11-01 17:17:24 +01:00
|
|
|
|
2022-07-29 21:58:35 +02:00
|
|
|
futures-util = { version = "0.3.17", default-features = false }
|
2023-08-25 23:32:00 +02:00
|
|
|
embassy-macros = { version = "0.2.1", path = "../embassy-macros" }
|
2023-10-16 20:07:48 +02:00
|
|
|
embassy-time = { version = "0.1.5", path = "../embassy-time", optional = true}
|
2022-08-14 23:16:06 +02:00
|
|
|
atomic-polyfill = "1.0.1"
|
|
|
|
critical-section = "1.1"
|
2020-11-01 17:17:24 +01:00
|
|
|
|
2023-04-03 01:18:27 +02:00
|
|
|
# arch-cortex-m dependencies
|
|
|
|
cortex-m = { version = "0.7.6", optional = true }
|
|
|
|
|
|
|
|
# arch-wasm dependencies
|
2022-08-23 19:55:49 +02:00
|
|
|
wasm-bindgen = { version = "0.2.82", optional = true }
|
|
|
|
js-sys = { version = "0.3", optional = true }
|