psst icon indicating copy to clipboard operation
psst copied to clipboard

Update druid to fix compilation for windows target

Open xtenduke opened this issue 3 years ago • 0 comments

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

xtenduke avatar Aug 09 '22 09:08 xtenduke