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

#1768 in WebAssembly

Download history 7232/week @ 2025-10-15 11466/week @ 2025-10-22 13010/week @ 2025-10-29 12104/week @ 2025-11-05 11226/week @ 2025-11-12 15060/week @ 2025-11-19 11224/week @ 2025-11-26 9385/week @ 2025-12-03 14317/week @ 2025-12-10 13511/week @ 2025-12-17 13234/week @ 2025-12-24 16964/week @ 2025-12-31 15387/week @ 2026-01-07 14750/week @ 2026-01-14 12316/week @ 2026-01-21 15403/week @ 2026-01-28

60,155 downloads per month
Used in 211 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.3MB
~32K SLoC