pub fn optimize_wasm<P: AsRef<Path>>(
source: P,
destination: P,
optimization_passes: &str,
keep_debug_symbols: bool,
) -> Result<OptimizationResult>
Expand description
Attempts to perform optional Wasm optimization using binaryen
.
The intention is to reduce the size of bloated Wasm binaries as a result of missing optimizations (or bugs?) between Rust and Wasm.