Function wasm_pack::wasm_opt::find_wasm_opt
source · [−]Expand description
Attempts to find wasm-opt
in PATH
locally, or failing that downloads a
precompiled binary.
Returns Some
if a binary was found or it was successfully downloaded.
Returns None
if a binary wasn’t found in PATH
and this platform doesn’t
have precompiled binaries. Returns an error if we failed to download the
binary.