Hello
I have a function launching a Wry-webview. I launch it in a separate thread, because of this I need to make a EventLoopBuilder like this:
use wry::application::platform::windows::EventLoopBuilderExtWindows;
let event_loop: EventLoop<()> = EventLoopBuilder::default()
.with_any_thread(true) // Necessary because it gets launched in a separate thread
.build();
This works perfectly on Windows. But I am trying to compile it on MacOS.
use wry::application::platform::unix::EventLoopBuilderExtUnix;
let event_loop: EventLoop<()> = EventLoopBuilder::default()
.with_any_thread(true) // Necessary because it gets launched in a separate thread
.build();
This yields the error:
error[E0432]: unresolved import `wry::application::platform::unix`
--> src/ui.rs:355:37
|
355 | use wry::application::platform::unix::EventLoopBuilderExtUnix;
| ^^^^ could not find `unix` in `platform`
wry::application::platform::unix
does exist however. How to fix this?