Expand description
Functionality related to installing prebuilt binaries and/or running cargo install.
Enums§
- Arch
- An enum representing supported architectures
- Install
Mode - The
InstallModedetermines which mode of initialization we are running, and what install steps we perform. - Os
- An enum representing supported operating systems
- Status
- Possible outcomes of attempting to find/install a tool
- Tool
- Represents the set of CLI tools wasm-pack uses
Functions§
- cargo_
install - Use
cargo installto install the tool locally into the given crate. - check_
version - Check if the tool dependency is locally satisfied.
- download_
prebuilt - Downloads a precompiled copy of the tool, if available.
- download_
prebuilt_ or_ cargo_ install - Install a cargo CLI tool
- get_
cli_ version - Fetches the version of a CLI tool
- get_
tool_ path - Handles possible installs status and returns the download or a error message
- prebuilt_
url_ for - Get the download URL for some tool at some version, architecture and operating system