https://github.com/gfx-rs/wgpu/discussions/2893 for modern wgpu canvas initialization
very useful tutorial for using vite with rust wasm-pack https://www.youtube.com/watch?v=8zDYoprO358