Install the wasm-pack
utility for your system. On Arch Linux, I used sudo pacman -S wasm-pack
to get the tools. Installing via cargo install wasm-pack
caused issues for me due to permissions.
Compile for web with wasm-pack build --target web
.
Run by starting an http server, such as python -m http.server
, and then open that up in your browser. Navigate to the app/
folder to load the web app!
Compile and run for x86_64 with cargo run
TODO:
- Update versions of
pixels
andwgpu
, fix error that is referenced (here)[gfx-rs/wgpu#2954]. - Get UI logic out of the platform-dependent attribute code.
- Show the same thing on both platforms