embassy/embassy-executor/Cargo.toml

73 lines
2.5 KiB
TOML
Raw Permalink Normal View History

2020-09-22 18:03:43 +02:00
[package]
name = "embassy-executor"
2023-08-23 20:34:37 +02:00
version = "0.3.0"
2022-06-18 02:15:48 +02:00
edition = "2021"
license = "MIT OR Apache-2.0"
description = "async/await executor designed for embedded usage"
repository = "https://github.com/embassy-rs/embassy"
categories = [
"embedded",
"no-std",
"asynchronous",
]
[package.metadata.embassy_docs]
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"]
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"] },
]
[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"]
2020-09-22 18:03:43 +02:00
[features]
# Architecture
_arch = [] # some arch was picked
2023-08-14 08:22:22 +02:00
arch-std = ["_arch", "critical-section/std"]
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"]
# 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 = []
# Enable nightly-only features
nightly = []
turbowakers = []
integrated-timers = ["dep:embassy-time"]
2021-03-02 21:14:58 +01:00
# Trace interrupt invocations with rtos-trace.
rtos-trace-interrupt = ["rtos-trace", "embassy-macros/rtos-trace-interrupt"]
2020-09-22 18:03:43 +02:00
[dependencies]
defmt = { version = "0.3", optional = true }
2021-09-11 00:10:46 +02:00
log = { version = "0.4.14", optional = true }
rtos-trace = { version = "0.1.2", optional = true }
futures-util = { version = "0.3.17", default-features = false }
embassy-macros = { version = "0.2.1", path = "../embassy-macros" }
2023-08-28 17:00:18 +02:00
embassy-time = { version = "0.1.3", path = "../embassy-time", optional = true}
atomic-polyfill = "1.0.1"
critical-section = "1.1"
2023-06-01 01:32:11 +02:00
static_cell = "1.1"
# 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 }