wasm_split_helpers

Crates.iowasm_split_helpers
lib.rswasm_split_helpers
version0.1.2
created_at2025-07-20 16:56:32.358429+00
updated_at2025-07-27 12:29:42.593446+00
descriptionTools to support code-splitting and lazy loading for WebAssembly (WASM) binaries.
homepage
repositoryhttps://github.com/leptos-rs/leptos
max_upload_size
id1761243
size11,804
Greg Johnston (gbj)

documentation

README

wasm_split_helpers

This crate provides functions that are used by the wasm_split_macros 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.

Commit count: 5064

cargo fmt