A minimal Electron + WebAssembly (WASM) + 🦀 Rust example.
A minimal Electron + WebAssembly (WASM) + Rust example.
This example application is based on:
rustup target add wasm32-unknown-unknown
cargo install -f --version 0.2.47 wasm-bindgen-cli
git clone [email protected]:anderejd/electron-wasm-rust-example.git
cd electron-wasm-rust-example
npm install
https://electronjs.org/docs/tutorial/installation
Use the build.sh
or build.ps1
script to build the WebAssembly module.
npm start
TODO: Depend on and add scripts(?) for https://github.com/electron-userland/electron-builder, see issue #7.