Yatekii / imgui-wgpu-rs

Dear imgui renderer for wgpu-rs.
MIT License
256 stars 86 forks source link

Hello World example build fails #45

Closed felixfaire closed 3 years ago

felixfaire commented 3 years ago

Hi, this looks really useful but the example build seems to fail out of the box.

error[E0308]: mismatched types
  --> examples/hello_world.rs:66:9
   |
66 |         &window,
   |         ^^^^^^^ expected struct `winit::window::Window`, found a different struct `winit::window::Window`
   |
   = note: expected reference `&winit::window::Window` (struct `winit::window::Window`)
              found reference `&winit::window::Window` (struct `winit::window::Window`)
   = note: perhaps two different versions of crate `winit` are being used?

It seems like quite a strange error as the types clearly match. I'm quite new to rust so the error may be on my part but any help would be appreciated. Thanks

Macos rustc 1.49.0

felixfaire commented 3 years ago

using winit 0.23 everywhere is the cargo.toml seems to fix this but i'm not sure which of the crates is creating the conflict without doing this.

cwfitzgerald commented 3 years ago

Is this on master?

felixfaire commented 3 years ago

yes it is on master.

I'm also noticing a lot of mouse event input lag on macos but that might be worth a separate issue (and could be a a winit problem)

cwfitzgerald commented 3 years ago

This repros with someone else. Will investigate tonight. Will likely just need to release 0.14 with a fixed deps.