Skip to main content

Module start_up

Module start_up 

Source
Expand description

WASM entry points exported to JavaScript.

§Bootstrap sequence

  1. Page loads wasm-bindgen glue and calls await init().
  2. init — sets up console_log and a panic hook with backtrace.
  3. App entry — the app crate exports main_run (see web-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.
wasmEntry_main_run
Legacy export name kept for older index.html bootstraps that scan wasmEntry_*.