Expand description
WASM entry points exported to JavaScript.
§Bootstrap sequence
- Page loads wasm-bindgen glue and calls
await init(). init— sets upconsole_logand a panic hook with backtrace.- App entry — the app crate exports
main_run(seeweb-example) which runs the function marked with#[cotis_start_async].
Functions§
- init
- Initializes logging and a WASM panic hook. Call once after wasm-bindgen
init(). - init_
wasm - main_
run - Dispatches to the application entry hook registered by
#[cotis_start_async]. - set_
panic_ hook - Installs a panic hook that logs the message and a captured backtrace to the console.
- wasm
Entry_ main_ run - Legacy export name kept for older
index.htmlbootstraps that scanwasmEntry_*.