mrk-its / bevy_webgl2

WebGL2 renderer plugin for Bevy game engine
MIT License
172 stars 46 forks source link

Latest Winit Version Breaks bevy_webgl2 #42

Closed billyb2 closed 3 years ago

billyb2 commented 3 years ago

When using the latest bevy git commit (master branch of this repo), I get the following build error:

error: Please select a feature to build for unix: x11, wayland --> /home/billy/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.25.0/src/platform_impl/linux/mod.rs:10:1 | 10 | compile_error!("Please select a feature to build for unix: x11, wayland"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0392]: parameter T is never used --> /home/billy/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.25.0/src/event_loop.rs:32:22 32 pub struct EventLoop<T: 'static> { ^ unused parameter

= help: consider removing T, referring to it in a field, or using a marker such as PhantomData = help: if you intended T to be a const parameter, use const T: usize instead

error[E0392]: parameter T is never used --> /home/billy/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.25.0/src/event_loop.rs:43:34 43 pub struct EventLoopWindowTarget<T: 'static> { ^ unused parameter

= help: consider removing T, referring to it in a field, or using a marker such as PhantomData = help: if you intended T to be a const parameter, use const T: usize instead

error[E0392]: parameter T is never used --> /home/billy/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.25.0/src/event_loop.rs:196:27 196 pub struct EventLoopProxy<T: 'static> { ^ unused parameter
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
= help: if you intended `T` to be a const parameter, use `const T: usize` instead
error[E0392]: parameter T is never used --> /home/billy/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.25.0/src/platform_impl/linux/mod.rs:543:20 543 pub enum EventLoop<T: 'static> { ^ unused parameter
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
= help: if you intended `T` to be a const parameter, use `const T: usize` instead
error[E0392]: parameter T is never used --> /home/billy/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.25.0/src/platform_impl/linux/mod.rs:550:25 550 pub enum EventLoopProxy<T: 'static> { ^ unused parameter
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
= help: if you intended `T` to be a const parameter, use `const T: usize` instead
error[E0392]: parameter T is never used --> /home/billy/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.25.0/src/platform_impl/linux/mod.rs:676:32 676 pub enum EventLoopWindowTarget { ^ unused parameter
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
= help: if you intended `T` to be a const parameter, use `const T: usize` instead

Compiling bytemuck v1.5.1 error: aborting due to 7 previous errors

For more information about this error, try rustc --explain E0392. error: could not compile winit

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish...

mockersf commented 3 years ago

did you try with #41 ?

billyb2 commented 3 years ago

Yeah it does, thank you! Would it be possible to link the PR to this issue, so it gets closed automatically?