How to upgrade winit to 0.30 for triangle example and cfg=wasm32? #5664
-
I have the problem with triangle example. I want to upgrade winit from 0.29.15 to 0.30. But doesn't know how.
I tried my best and changed code. It is compilable, but I cannot init render staff. With winit 0.30 my code looks like:
I got panicshello_wasm.js:409 panicked at library/std/src/sys/sync/condvar/no_threads.rs:20:9: condvar wait not supported Stack: Error at http://localhost:7014/pkg/hello_wasm.js:415:21 at logError (http://localhost:7014/pkg/hello_wasm.js:240:18) at imports.wbg.__wbg_new_abda76e883ba8a5f (http://localhost:7014/pkg/hello_wasm.js:414:66) at hello_wasm.wasm.console_error_panic_hook::Error::new::haf98a4b62c108c1a (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[26729]:0xb4d0ec) at hello_wasm.wasm.console_error_panic_hook::hook_impl::hb9370c8528bc0553 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[6002]:0x7d29c5) at hello_wasm.wasm.console_error_panic_hook::hook::h6af5d3f7503eb62c (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[31903]:0xb9e54b) at hello_wasm.wasm.core::ops::function::Fn::call::h07d6c5b0ceb9e440 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[28545]:0xb6d150) at hello_wasm.wasm.std::panicking::rust_panic_with_hook::h32c80a64fe4de396 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[11372]:0x9554de) at hello_wasm.wasm.std::panicking::begin_panic_handler::{{closure}}::hd496964d114e98b9 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[15495]:0xa1659d) at hello_wasm.wasm.std::sys_common::backtrace::__rust_end_short_backtrace::h0d4686a7fe3981a4 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[38175]:0xbdd5db)hello_wasm_bg.wasm:0xbdd6a3 Uncaught (in promise) RuntimeError: unreachable hello_wasm.js:409 panicked at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/sync/mutex/no_threads.rs:20:9: hello_wasm_bg.wasm:0xbdd6a3 Uncaught (in promise) RuntimeError: unreachable Guys, help please. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
So there is the related topic rust-windowing/winit#3667 |
Beta Was this translation helpful? Give feedback.
-
There is a lot of related issues. So I will leave the links and close this one. |
Beta Was this translation helpful? Give feedback.
-
I've updated to wgpu 24.0.0 and now is all fine. |
Beta Was this translation helpful? Give feedback.
@XCemaXX I made an example repo that might help