diff options
| author | Ulf Lilleengen <[email protected]> | 2021-09-13 14:35:40 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2021-09-13 16:42:39 +0200 |
| commit | e24528051b9ed26157bee93e32e37e7b06b8f4cc (patch) | |
| tree | bb0c4f201a6a7df9099d27b3a64f92036d645d45 /examples/wasm/Cargo.toml | |
| parent | f1c35b40c74db489da8e04f1c2e87a1d4030c617 (diff) | |
Add WASM support for executor
* Adds an executor for WASM runtimes based on wasm_bindgen.
* Add time driver based on JS time handling.
* Add example that can run in browser locally.
* Update to critical-section version that supports 'std' flag
Diffstat (limited to 'examples/wasm/Cargo.toml')
| -rw-r--r-- | examples/wasm/Cargo.toml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/wasm/Cargo.toml b/examples/wasm/Cargo.toml new file mode 100644 index 000000000..77f513ffa --- /dev/null +++ b/examples/wasm/Cargo.toml | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | [package] | ||
| 2 | authors = ["Ulf Lilleengen <[email protected]>"] | ||
| 3 | edition = "2018" | ||
| 4 | name = "embassy-wasm-example" | ||
| 5 | version = "0.1.0" | ||
| 6 | |||
| 7 | [lib] | ||
| 8 | crate-type = ["cdylib"] | ||
| 9 | |||
| 10 | [dependencies] | ||
| 11 | embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "wasm"] } | ||
| 12 | |||
| 13 | wasm-logger = "0.2.0" | ||
| 14 | wasm-bindgen = "0.2" | ||
| 15 | web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] } | ||
| 16 | log = "0.4.11" | ||
| 17 | critical-section = "0.2.2" | ||
