Function wasm_pack::install::download_prebuilt_or_cargo_install [−][src]
pub fn download_prebuilt_or_cargo_install(
tool: Tool,
cache: &Cache,
version: &str,
install_permitted: bool
) -> Result<Status, Error>
Expand description
Install a cargo CLI tool
Prefers an existing local install, if any exists. Then checks if there is a
global install on $PATH
that fits the bill. Then attempts to download a
tarball from the GitHub releases page, if this target has prebuilt
binaries. Finally, falls back to cargo install
.