[][src]Module wasm_pack::wasm_opt

Support for downloading and executing wasm-opt

Functions

find_wasm_opt

Attempts to find wasm-opt in PATH locally, or failing that downloads a precompiled binary.

run

Execute wasm-opt over wasm binaries found in out_dir, downloading if necessary into cache. Passes args to each invocation of wasm-opt.