Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
Using the latest `winit` version in examples fixes resizing behavior on
Wayland, so the workaround for that in the `winit` example is also
removed here.
  • Loading branch information
ids1024 committed Feb 20, 2023
1 parent fec8dec commit b7867c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ x11rb = { version = "0.11.0", features = ["allow-unsafe-code", "dl-libxcb", "shm
fastrand = { version = "1.8.0", optional = true }

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.42.0"
version = "0.45.0"
features = ["Win32_Graphics_Gdi", "Win32_UI_WindowsAndMessaging", "Win32_Foundation"]

[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.24.0"
core-graphics = "0.22.3"
foreign-types = "0.3.0"
foreign-types = "0.5.0"
objc = "0.2.7"

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand All @@ -60,15 +60,15 @@ cfg_aliases = "0.1.1"

[dev-dependencies]
instant = "0.1.12"
winit = "0.27.2"
winit = "0.28.1"

[dev-dependencies.image]
version = "0.23.14"
version = "0.24.5"
# Disable rayon on web
default-features = false
features = ["jpeg"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
# Turn rayon back on everywhere else; creating the separate entry resets the features to default.
image = "0.23.14"
image = "0.24.5"
rayon = "1.5.1"
6 changes: 0 additions & 6 deletions examples/winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ fn main() {
} if window_id == window.id() => {
*control_flow = ControlFlow::Exit;
}
Event::WindowEvent {
event: WindowEvent::Resized(_),
window_id,
} if window_id == window.id() => {
window.request_redraw();
}
_ => {}
}
});
Expand Down

0 comments on commit b7867c4

Please sign in to comment.