Clone in a terminal:
Cargo.toml
examples/callbacks/ - Multiple wasm threads
cargo-features = ["edition2024"]

[package]
name = "kaja-web-callback-example"
version = "0.1.0"
edition = "2024"

[lib]
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2.122"
kaja-web = { path = "../.." }
js-sys = "0.3"
web-sys = { version = "0.3.99", features = ["Element", "HtmlElement", "NodeList", "CssStyleDeclaration", "KeyboardEvent"] }
gloo = "0.12"
kaja-html-macro = "1.0.3"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.150"
uuid = { version = "1.23.2", features = ["js", "v4"] }
console_error_panic_hook = "0.1.7"
inventory = "0.3.24"
serde-wasm-bindgen = "0.5"
wasm-bindgen-futures = "0.4.72"
kaja-callback-macro = "0.1.0"

File history (8 commits)

2759560 Johan Mattsson - johan.mattsson.m@gmail.com
Multiple wasm threads
Multiple wasm threads
8bf2558 Johan Mattsson - johan.mattsson.m@gmail.com
Update examples
Update examples
f478ff8 Johan Mattsson - johan.mattsson.m@gmail.com
Clean up README.md and examples
Clean up README.md and examples
351d7a2 Johan Mattsson - johan.mattsson.m@gmail.com
Pass values without serde if the argument is JsValue
Pass values without serde if the argument is JsValue
234866d Johan Mattsson - johan.mattsson.m@gmail.com
Make async functions work as callbacks
Make async functions work as callbacks
feeb091 Johan Mattsson - johan.mattsson.m@gmail.com
Color in example
Color in example
760267c Johan Mattsson - johan.mattsson.m@gmail.com
Update example
Update example
3fa1086 Johan Mattsson - johan.mattsson.m@gmail.com
Add closure test
Add closure test

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112