dioxus
dioxus copied to clipboard
Feat: CLI `wasm-bindgen-cli` Installer
This PR adds prebuilt binary (and fallback compile-from-source) installation of the wasm-bindgen CLI. This allows our CLI to build a project of any wasm-bindgen version as long as the installed wasm-bindgen-cli supports the required flags.
- A temporary folder is used to store installation artifacts.
- Installed binaries are stored in
{data_local_dir}/dioxus/wasm-bindgen - Installed binaries are named
wasm-bindgen-{version}{.exe}
The installer attempts to install in this order:
- Prebuilt release binaries on wasm-bindgen's GitHub
- cargo-binstall
- cargo-install
This could use testing on other platforms:
- [x] Windows
- [x] MacOS
- [ ] Linux