Replies: 2 comments
-
|
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
-
|
Your correct, the lib requirement is mostly for wasm-pack. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 runruns just fine.trunk servealso works just fine.Beta Was this translation helpful? Give feedback.
All reactions