Replies: 1 comment
-
also i got winit 0.30 working for both desktop and web, based on a wgpu pull request, but it perhaps doesn't deserve a beauty award |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm wondering if it is really required to have a definition for lib in Cargo.toml as mentioned here:
https://github.com/sotrh/learn-wgpu/tree/master/docs/beginner/tutorial1-window#added-support-for-the-web
I have been able to build my application (https://github.com/jelmerta/kloenk) both as a desktop application as well as running in the web without having this definition. wasm-pack does seem to require it, perhaps because it builds more bindings between js and rust? However,
cargo run
runs just fine.trunk serve
also works just fine.Beta Was this translation helpful? Give feedback.
All reactions