Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winit-0.18.0 error[E0004] #86

Closed
DeepInThought opened this issue Jan 6, 2019 · 1 comment
Closed

winit-0.18.0 error[E0004] #86

DeepInThought opened this issue Jan 6, 2019 · 1 comment

Comments

@DeepInThought
Copy link

DeepInThought commented Jan 6, 2019

Description

When running through the installation creating-a-new-project and executing the cargo run command I receiving the following error:

error[E0004]: non-exhaustive patterns: Shape { .. } and Orientation { .. } not covered
--> /home/deepit/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.18.0/src/platform/linux/wayland/touch.rs:30:19
|
30 | match evt {
| ^^^ patterns Shape { .. } and Orientation { .. } not covered

error: aborting due to previous error

For more information about this error, try rustc --explain E0004.
error: Could not compile winit.
warning: build failed, waiting for other jobs to finish...
error: build failed

Version / OS

Steps to Reproduce

cargo new --bin my_first_azul_app
cd my_first_azul_app
cargo run

Expected Behavior

Cargo run without errors.

Actual Behavior

error[E0004]: non-exhaustive patterns: Shape { .. }andOrientation { .. }not covered --> /home/deepit/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.18.0/src/platform/linux/wayland/touch.rs:30:19 | 30 | match evt { | ^^^ patternsShape { .. }andOrientation { .. }` not covered

error: aborting due to previous error

For more information about this error, try rustc --explain E0004.
error: Could not compile winit.
warning: build failed, waiting for other jobs to finish...
error: build failed`

Additional Information

I found a workaround by adding wayland-client = "=0.21.7" via

amethyst/amethyst#1324

@fschutt
Copy link
Owner

fschutt commented Jan 6, 2019

See Smithay/wayland-rs#221 - wayland-client broke semver. This should be fixed permanently when azul switches to a monorepo.

fschutt added a commit that referenced this issue Jan 9, 2019
Due to the instability of crates.io, this gives way better
stability and versioning guarantees with the tradeoff that
now, users might compile crates twice. However, that is
generally better than code breaking every few days, so
it's the lesser evil.

Fixes #86 and #80.
fschutt added a commit that referenced this issue May 13, 2019
Due to the instability of crates.io, this gives way better
stability and versioning guarantees with the tradeoff that
now, users might compile crates twice. However, that is
generally better than code breaking every few days, so
it's the lesser evil.

Fixes #86 and #80.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants