Skip to content

Local testing in Windows #2627

Open
Open
@moosama76

Description

@moosama76

Local testing in windows currently doesn't work because an error in node-graph/graph-craft/src/wasm_application_io.rs

212 | use winit::platform::wayland::EventLoopBuilderExtWayland;
| ^^^^^^^ could not find wayland in platform
|
note: found an item that was configured out
--> C:\Users\Mohamed Osama.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.29.15\src\platform\mod.rs:30:9
|
30 | pub mod wayland;
| ^^^^^^^
note: the item is gated here
--> C:\Users\Mohamed Osama.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.29.15\src\platform\mod.rs:29:1
|
29 | #[cfg(wayland_platform)]
| ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named with_any_thread found for struct EventLoopBuilder in the current scope
--> node-graph\graph-craft\src\wasm_application_io.rs:215:63
|
215 | let event_loop = winit::event_loop::EventLoopBuilder::new().with_any_thread(true).build().unwrap();
| ^^^^^^^^^^^^^^^ method not found in EventLoopBuilder<()>
|
::: C:\Users\Mohamed Osama.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.29.15\src\platform\windows.rs:33:8
|
33 | fn with_any_thread(&mut self, any_thread: bool) -> &mut Self;
| --------------- the method is available for EventLoopBuilder<()> here
|
= help: items from traits can only be used if the trait is in scope
help: trait EventLoopBuilderExtWindows which provides with_any_thread is implemented but not in scope; perhaps you want to import it

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Short-Term

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions