| Crates.io | wasm_split_macros |
| lib.rs | wasm_split_macros |
| version | 0.1.3 |
| created_at | 2025-07-20 16:50:24.53297+00 |
| updated_at | 2025-09-18 19:47:39.708656+00 |
| description | Tools to support code-splitting and lazy loading for WebAssembly (WASM) binaries. |
| homepage | |
| repository | https://github.com/leptos-rs/leptos |
| max_upload_size | |
| id | 1761239 |
| size | 13,878 |
wasm_split_macrosThis crate provides macros that are used along with the wasm_split_helpers crate, which allows you to indicate that certain functions are appropriate split points for lazy-loaded code.
A build tool that supports this approach (like cargo-leptos) can then split a WebAssembly (WASM) binary into multiple chunks, which will be lazy-loaded when a split function is called.
This crate was adapted from an original prototype, which you can find here, with an in-depth description of the approach here.
This functionality is provided in Leptos by the #[lazy] and #[lazy_route] macros.