d3c4e4a20a
This introduces a `Pender` struct with enum cases for thread-mode, interrupt-mode and custom callback executors. This avoids calls through function pointers when using only the thread or interrupt executors. Faster, and friendlier to `cargo-call-stack`. `embassy-executor` now has `arch-xxx` Cargo features to select the arch and to enable the builtin executors (thread and interrupt).
19 lines
719 B
TOML
19 lines
719 B
TOML
[package]
|
|
edition = "2021"
|
|
name = "embassy-wasm-example"
|
|
version = "0.1.0"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
embassy-sync = { version = "0.1.0", path = "../../embassy-sync", features = ["log"] }
|
|
embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["arch-wasm", "executor-thread", "log", "nightly", "integrated-timers"] }
|
|
embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["log", "wasm", "nightly"] }
|
|
|
|
wasm-logger = "0.2.0"
|
|
wasm-bindgen = "0.2"
|
|
web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] }
|
|
log = "0.4.11"
|
|
critical-section = { version = "1.1", features = ["std"] }
|