[−][src]Function wasm_pack::wasm_opt::find_wasm_opt
pub fn find_wasm_opt(
cache: &Cache,
install_permitted: bool
) -> Result<Status, Error>
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.