8 releases

0.2.0 Oct 20, 2025
0.2.0-rc.2 Oct 16, 2025
0.1.3 Sep 18, 2025
0.1.2 Jul 26, 2025

#1611 in WebAssembly

Download history 4021/week @ 2025-08-15 4005/week @ 2025-08-22 6424/week @ 2025-08-29 5348/week @ 2025-09-05 5516/week @ 2025-09-12 7469/week @ 2025-09-19 9142/week @ 2025-09-26 6524/week @ 2025-10-03 6404/week @ 2025-10-10 7196/week @ 2025-10-17 12938/week @ 2025-10-24 13377/week @ 2025-10-31 12616/week @ 2025-11-07 10461/week @ 2025-11-14 15038/week @ 2025-11-21 9422/week @ 2025-11-28

49,285 downloads per month
Used in 194 crates (via wasm_split_helpers)

MIT/Apache

16KB
263 lines

wasm_split_macros

This 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 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, with an in-depth description of the approach here.

Dependencies

~0.8–1.4MB
~33K SLoC