2020-09-22 18:03:43 +02:00
|
|
|
[package]
|
2022-07-29 21:58:35 +02:00
|
|
|
name = "embassy-executor"
|
2020-09-22 18:03:43 +02:00
|
|
|
version = "0.1.0"
|
2022-06-18 02:15:48 +02:00
|
|
|
edition = "2021"
|
2020-09-22 18:03:43 +02:00
|
|
|
|
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/"
|
2022-03-04 17:45:01 +01:00
|
|
|
features = ["nightly", "defmt", "unstable-traits", "time", "time-tick-1mhz"]
|
|
|
|
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 = [] },
|
|
|
|
]
|
|
|
|
|
2020-09-22 18:03:43 +02:00
|
|
|
[features]
|
2021-07-12 03:29:09 +02:00
|
|
|
default = []
|
2022-07-29 21:58:35 +02:00
|
|
|
std = ["time", "time-tick-1mhz", "embassy-macros/std"]
|
2021-09-13 14:35:40 +02:00
|
|
|
wasm = ["wasm-bindgen", "js-sys", "embassy-macros/wasm", "wasm-timer", "time", "time-tick-1mhz"]
|
2021-07-12 03:29:09 +02:00
|
|
|
|
2022-02-12 00:24:04 +01:00
|
|
|
# Enable nightly-only features
|
|
|
|
nightly = ["embedded-hal-async"]
|
|
|
|
|
2022-01-27 00:08:02 +01:00
|
|
|
# Implement embedded-hal 1.0 alpha and embedded-hal-async traits.
|
2022-02-12 00:24:04 +01:00
|
|
|
# Implement embedded-hal-async traits if `nightly` is set as well.
|
|
|
|
unstable-traits = ["embedded-hal-1"]
|
2022-01-27 00:08:02 +01:00
|
|
|
|
2022-02-12 02:45:23 +01:00
|
|
|
# Display a timestamp of the number of seconds since startup next to defmt log messages
|
|
|
|
# To use this you must have a time driver provided.
|
|
|
|
defmt-timestamp-uptime = ["defmt"]
|
|
|
|
|
2022-07-29 21:58:35 +02:00
|
|
|
# Enable `embassy_executor::time` module.
|
2021-08-24 22:46:07 +02:00
|
|
|
# NOTE: This feature is only intended to be enabled by crates providing the time driver implementation.
|
|
|
|
# Enabling it directly without supplying a time driver will fail to link.
|
2021-07-12 03:29:09 +02:00
|
|
|
time = []
|
2021-08-24 22:46:07 +02:00
|
|
|
|
2022-07-29 21:58:35 +02:00
|
|
|
# Set the `embassy_executor::time` tick rate.
|
2021-08-24 22:46:07 +02:00
|
|
|
# NOTE: This feature is only intended to be enabled by crates providing the time driver implementation.
|
|
|
|
# If you're not writing your own driver, check the driver documentation to customize the tick rate.
|
|
|
|
# If you're writing a driver and your tick rate is not listed here, please add it and send a PR!
|
2021-07-12 03:29:09 +02:00
|
|
|
time-tick-32768hz = ["time"]
|
|
|
|
time-tick-1000hz = ["time"]
|
|
|
|
time-tick-1mhz = ["time"]
|
2022-06-08 15:54:18 +02:00
|
|
|
time-tick-16mhz = ["time"]
|
2021-03-02 21:14:58 +01:00
|
|
|
|
2022-08-16 06:42:08 +02:00
|
|
|
# Trace interrupt invocations with rtos-trace.
|
|
|
|
rtos-trace-interrupt = ["rtos-trace"]
|
|
|
|
|
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-01-27 00:08:02 +01:00
|
|
|
embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" }
|
2022-04-22 19:58:24 +02:00
|
|
|
embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.8", optional = true}
|
2022-05-29 22:34:08 +02:00
|
|
|
embedded-hal-async = { version = "0.1.0-alpha.1", optional = true}
|
2022-01-27 00:08:02 +01:00
|
|
|
|
2022-07-29 21:58:35 +02:00
|
|
|
futures-util = { version = "0.3.17", default-features = false }
|
2020-10-19 21:15:24 +02:00
|
|
|
embassy-macros = { version = "0.1.0", path = "../embassy-macros"}
|
2021-11-02 18:52:03 +01:00
|
|
|
atomic-polyfill = "0.1.5"
|
|
|
|
critical-section = "0.2.5"
|
2021-12-23 13:34:15 +01:00
|
|
|
cfg-if = "1.0.0"
|
2020-11-01 17:17:24 +01:00
|
|
|
|
2021-09-13 14:35:40 +02:00
|
|
|
# WASM dependencies
|
|
|
|
wasm-bindgen = { version = "0.2.76", features = ["nightly"], optional = true }
|
|
|
|
js-sys = { version = "0.3", optional = true }
|
2022-07-29 21:58:35 +02:00
|
|
|
wasm-timer = { version = "0.2.5", optional = true }
|