wasm_split_helpers 0.2.0

Split a WASM module into lazily loadable chunks
Documentation
1
2
3
4
5
6
7
8
9
10
11
# `wasm_split_helpers`

This crate provides runtime support for the `wasm_split_macros` crate, which allows you to indicate that certain functions are appropriate split points for lazy-loaded code in WebAssembly (WASM).

A build tool that supports this approach (like `wasm-split-cli` in `wasm_split_cli_support`) can then split a WASM binary into multiple chunks, which will be lazy-loaded on demand.

This crate was adapted from an original prototype, which you can find [here](https://github.com/jbms/wasm-split-prototype), with an in-depth description of the approach [here](https://github.com/rustwasm/wasm-bindgen/issues/3939).

This functionality is used:
- in Leptos to support the `#[lazy]` and `#[lazy_route]` macros.
- in Yew to support the `Lazy` component