macro_rules! web_main {
($app:path) => { ... };
($builder:expr, $app:path) => { ... };
}Expand description
Declares the browser entry point for an application’s wasm module.
A page has no library loader and no main of its own to run: the Renderer’s module
owns the loop and calls this once both wasm modules exist, and it answers with the
address of the block the Host lends the Renderer.
The export is here rather than in this crate because a wasm module cannot be linked
with an undefined symbol the way an ELF shared library can. Android’s cdylib imports
dioxus_compose_android_main from the application and the dynamic linker resolves it
at load time; a browser refuses to instantiate a module whose imports are not all
supplied, so the entry point is defined where the root component is.
ⓘ
compose_rust::web_main!(app);