[GH-ISSUE #322] Update druid to fix compilation for windows target #226

Closed
opened 2026-02-28 14:31:30 +03:00 by kerem · 1 comment
Owner

Originally created by @xtenduke on GitHub (Aug 9, 2022).
Original GitHub issue: https://github.com/jpochyla/psst/issues/322

Describe the bug
Psst doesn't compile on windows because the targeted commit of the druid fork has an issue which was fixed here
https://github.com/linebender/druid/pull/2238

PS C:\Users\Jake\development\psst>cargo build
   Compiling ureq v2.4.0
   Compiling druid-shell v0.7.0 (https://github.com/jpochyla/druid?branch=psst#4cfcf6e1)
error[E0432]: unresolved import `raw_window_handle::windows::WindowsHandle`
  --> C:\Users\Jake\.cargo\git\checkouts\druid-64a54200c8cd3ebf\4cfcf6e\druid-shell\src\backend\windows\window.rs:51:25
   |
51 | use raw_window_handle::{windows::WindowsHandle, HasRawWindowHandle, RawWindowHandle};
   |                         ^^^^^^^^^-------------
   |                         |        |
   |                         |        help: a similar name exists in the module: `Win32Handle`
   |                         no `WindowsHandle` in `windows`

error[E0603]: module `windows` is private
  --> C:\Users\Jake\.cargo\git\checkouts\druid-64a54200c8cd3ebf\4cfcf6e\druid-shell\src\backend\windows\window.rs:51:25
   |
51 | use raw_window_handle::{windows::WindowsHandle, HasRawWindowHandle, RawWindowHandle};
   |                         ^^^^^^^ private module
   |
note: the module `windows` is defined here
  --> C:\Users\Jake\.cargo\registry\src\github.com-1ecc6299db9ec823\raw-window-handle-0.4.2\src\lib.rs:30:1
   |
30 | mod windows;
   | ^^^^^^^^^^^^

error[E0599]: no variant or associated item named `Windows` found for enum `RawWindowHandle` in the current scope
   --> C:\Users\Jake\.cargo\git\checkouts\druid-64a54200c8cd3ebf\4cfcf6e\druid-shell\src\backend\windows\window.rs:196:30
    |
196 |             RawWindowHandle::Windows(handle)
    |                              ^^^^^^^ variant or associated item not found in `RawWindowHandle`

error[E0599]: no variant or associated item named `Windows` found for enum `RawWindowHandle` in the current scope
   --> C:\Users\Jake\.cargo\git\checkouts\druid-64a54200c8cd3ebf\4cfcf6e\druid-shell\src\backend\windows\window.rs:199:30
    |
199 |             RawWindowHandle::Windows(WindowsHandle::empty())
    |                              ^^^^^^^ variant or associated item not found in `RawWindowHandle`

Some errors have detailed explanations: E0432, E0599, E0603.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `druid-shell` due to 4 previous errors

To Reproduce
Build Psst on Windows

Expected behavior
Building Psst on windows should succeed

Screenshots
n/a

Environment

  • OS: Windows
  • Version: 10 21H2
Originally created by @xtenduke on GitHub (Aug 9, 2022). Original GitHub issue: https://github.com/jpochyla/psst/issues/322 **Describe the bug** Psst doesn't compile on windows because the targeted commit of the druid fork has an issue which was fixed here https://github.com/linebender/druid/pull/2238 ``` PS C:\Users\Jake\development\psst>cargo build Compiling ureq v2.4.0 Compiling druid-shell v0.7.0 (https://github.com/jpochyla/druid?branch=psst#4cfcf6e1) error[E0432]: unresolved import `raw_window_handle::windows::WindowsHandle` --> C:\Users\Jake\.cargo\git\checkouts\druid-64a54200c8cd3ebf\4cfcf6e\druid-shell\src\backend\windows\window.rs:51:25 | 51 | use raw_window_handle::{windows::WindowsHandle, HasRawWindowHandle, RawWindowHandle}; | ^^^^^^^^^------------- | | | | | help: a similar name exists in the module: `Win32Handle` | no `WindowsHandle` in `windows` error[E0603]: module `windows` is private --> C:\Users\Jake\.cargo\git\checkouts\druid-64a54200c8cd3ebf\4cfcf6e\druid-shell\src\backend\windows\window.rs:51:25 | 51 | use raw_window_handle::{windows::WindowsHandle, HasRawWindowHandle, RawWindowHandle}; | ^^^^^^^ private module | note: the module `windows` is defined here --> C:\Users\Jake\.cargo\registry\src\github.com-1ecc6299db9ec823\raw-window-handle-0.4.2\src\lib.rs:30:1 | 30 | mod windows; | ^^^^^^^^^^^^ error[E0599]: no variant or associated item named `Windows` found for enum `RawWindowHandle` in the current scope --> C:\Users\Jake\.cargo\git\checkouts\druid-64a54200c8cd3ebf\4cfcf6e\druid-shell\src\backend\windows\window.rs:196:30 | 196 | RawWindowHandle::Windows(handle) | ^^^^^^^ variant or associated item not found in `RawWindowHandle` error[E0599]: no variant or associated item named `Windows` found for enum `RawWindowHandle` in the current scope --> C:\Users\Jake\.cargo\git\checkouts\druid-64a54200c8cd3ebf\4cfcf6e\druid-shell\src\backend\windows\window.rs:199:30 | 199 | RawWindowHandle::Windows(WindowsHandle::empty()) | ^^^^^^^ variant or associated item not found in `RawWindowHandle` Some errors have detailed explanations: E0432, E0599, E0603. For more information about an error, try `rustc --explain E0432`. error: could not compile `druid-shell` due to 4 previous errors ``` **To Reproduce** Build Psst on Windows **Expected behavior** Building Psst on windows should succeed **Screenshots** n/a **Environment** - OS: Windows - Version: 10 21H2
kerem 2026-02-28 14:31:30 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@liquiddandruff commented on GitHub (Sep 29, 2022):

Looks good to close I think, fixed in upstream and submodule has been updated. Was able to build recently

<!-- gh-comment-id:1261743291 --> @liquiddandruff commented on GitHub (Sep 29, 2022): Looks good to close I think, fixed in upstream and submodule has been updated. Was able to build recently
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#226
No description provided.