Implement version 0.4 of the HasRawWindowHandle trait
This makes Winit 0.27 compatible with crates like Wgpu 0.13 that are using the raw_window_handle v0.4 crate and aren't able to upgrade to 0.5 until they do a new release (since it requires a semver change). The change is intended to be self-contained (instead of pushing the details into all the platform_impl backends) since this is only intended to be a temporary trait implementation for backwards compatibility that will likely be removed before the next Winit release. Fixes #2415.
This commit is contained in:
parent
ad41eaf151
commit
11d4a301e4
3 changed files with 106 additions and 1 deletions
|
|
@ -46,7 +46,8 @@ instant = { version = "0.1", features = ["wasm-bindgen"] }
|
|||
once_cell = "1.12"
|
||||
log = "0.4"
|
||||
serde = { version = "1", optional = true, features = ["serde_derive"] }
|
||||
raw-window-handle = "0.5.0"
|
||||
raw_window_handle = { package = "raw-window-handle", version = "0.5" }
|
||||
raw_window_handle_04 = { package = "raw-window-handle", version = "0.4" }
|
||||
bitflags = "1"
|
||||
mint = { version = "0.5.6", optional = true }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue