pub fn optimize_wasm(
    source: PathBuf,
    destination: PathBuf,
    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.