Add support for `libstd` `optimize_for_size`
Author: LynnesbianCreated Sep 16, 2026Updated Sep 16, 2026
Feature description
In a similar vein to #1572, a flag for building libstd with optimize_for_size would be nice to have, since space is often of concern when building for WASM. Similarly to that issue, this would require a nightly compiler.
Basic example
For example:
wasm-pack build --release --small-libstdSource: wasm-bindgen/wasm-pack