chore(deps): update rust dependencies related to winit and wgpu #14442
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.14.1
->0.14.2
0.5.2
->0.6.0
0.28.7
->0.29.4
Release Notes
rust-windowing/raw-window-handle (raw-window-handle)
v0.6.0
Compare Source
NonNull
where appropriate, to avoid null pointer dereferences.empty
methods tonew
, and take parameters in most of those, to better match normal Rust semantics.HasRaw(Display/Window)Handle::raw_(display/window)_handle
returns a result indicating if fetching the window handle failed (#122).Active/ActiveHandle
types from the public API (#126).AppKitWindowHandle::ns_window
andUiKitWindowHandle::ui_window
since they can be retrieved from the view (#129).Copy
derive fromRawWindowHandle
andWindowHandle
(#140).PartialEq
,Eq
andHash
forWindowHandle
too. (#128)&mut T where T: <trait>
. (#130)wasm-bindgen
v0.2. They are locked behind thewasm-bindgen-0-2
feature. (#134)rust-windowing/winit (winit)
v0.29.4
Compare Source
drag_window
anddrag_resize_window
can be called from another thread.set_control_flow
inAboutToWait
not being taken in account.Resized
event after eachScaleFactorChanged
event.wl_surface
being destroyed before associated objects.Fn
key.v0.29.3
Compare Source
PhysicalSize
passed inWindowBuilder::with_inner_size
when possible.RedrawRequsted
being always sent without decorations andsctk-adwaita
feature.configure_bounds
to constrainwith_inner_size
when compositor wants users to pick size.Cursor{Enter,Leave}
.Window::set_transparent
.Window::set_blur
.v0.29.2
Compare Source
1.60
to1.65
.Event::MemoryWarning
; implemented on iOS/Android.ndk
version to0.8.0
, ndk-sys to0.5.0
,android-activity
to0.5.0
.ControlFlow
fromPoll
toWait
.Event::RedrawRequested
toWindowEvent::RedrawRequested
.ControlFlow::Exit
toEventLoopWindowTarget::exit()
andEventLoopWindowTarget::exiting()
and removedControlFlow::ExitWithCode(_)
entirely.ControlFlow
toEventLoopWindowTarget::set_control_flow()
andEventLoopWindowTarget::control_flow()
.EventLoop::new
andEventLoopBuilder::build
now returnResult<Self, EventLoopError>
WINIT_UNIX_BACKEND
was removed in favor of standardWAYLAND_DISPLAY
andDISPLAY
variables.DeviceEvent::Text
.Event
andWindowEvent
.Window::set_inner_size
toWindow::request_inner_size
and indicate if the size was applied immediately.ActivationTokenDone
event which could be requested with the newstartup_notify
module, see its docs for more.ScaleFactorChanged
now contains a writer instead of a reference to update inner size.run() -> !
has been replaced byrun() -> Result<(), EventLoopError>
for returning errors without callingstd::process::exit()
(#2767)EventLoopExtRunReturn
/run_return
in favor ofEventLoopExtPumpEvents
/pump_events
andEventLoopExtRunOnDemand
/run_on_demand
(#2767)RedrawRequested
is no longer guaranteed to be emitted afterMainEventsCleared
, it is now platform-specific when the event is emitted after being requested viaredraw_request()
.RedrawRequested
is now driven byWM_PAINT
messages which are requested viaredraw_request()
LoopDestroyed
renamed toLoopExiting
(#2900)RedrawEventsCleared
removed (#2900)MainEventsCleared
removed (#2900)modifiers
fields.DeviceEventFilter
toDeviceEvents
reversing the behavior of variants.AboutToWait
event which is emitted when the event loop is about to block and wait for new events (#2900)EventLoopWindowTarget::set_device_event_filter
tolisten_device_events
.Window::set_ime_position
toWindow::set_ime_cursor_area
adding a way to set exclusive zone.with_x11_visual
now takes the visual ID instead of the bare pointer.MouseButton
now supportsBack
andForward
variants, emitted from mouse events on Wayland, X11, Windows, macOS and Web.instant
is now replaced byweb_time
.WindowEvent::Resized
.bitflags
crate version to2
, which changes the API on exposed types.CursorIcon::Arrow
was removed.CursorIcon::Hand
is now namedCursorIcon::Pointer
.CursorIcon
is now used from thecursor-icon
crate.WindowExtWebSys::canvas()
now returns anOption
.KeyboardInput
withKeyEvent
andRawKeyEvent
.WindowEvent::KeyboardInput
to contain aKeyEvent
.Event::Key
to contain aRawKeyEvent
.Event::ReceivedCharacter
. In its place, you should useKeyEvent.text
in combination withWindowEvent::Ime
.VirtualKeyCode
with theKey
enum.ScanCode
with theKeyCode
enum.ModifiersState::LOGO
toSUPER
andModifiersState::CTRL
toCONTROL
.PhysicalKey
wrappingKeyCode
andNativeKeyCode
.KeyCode
to refer to keys (roughly) by their physical location.NativeKeyCode
to represent rawKeyCode
s which Winit doesn'tunderstand.
Key
to represent the keys after they've been interpreted by theactive (software) keyboard layout.
NamedKey
to represent the categorized keys.NativeKey
to represent rawKey
s which Winit doesn't understand.KeyLocation
to tell apartKey
s which usually "mean" the same thing,but can appear simultaneously in different spots on the same keyboard
layout.
Window::reset_dead_keys
to enable application-controlled cancellationof dead key sequences.
KeyEventExtModifierSupplement
to expose additional (and lessportable) interpretations of a given key-press.
PhysicalKeyExtScancode
, which lets you convert between scancodes andPhysicalKey
.ModifiersChanged
now uses dedicatedModifiers
struct.raw-window-handle
trait implementations instead:platform::windows::HINSTANCE
.WindowExtWindows::hinstance
.WindowExtWindows::hwnd
.WindowExtIOS::ui_window
.WindowExtIOS::ui_view_controller
.WindowExtIOS::ui_view
.WindowExtMacOS::ns_window
.WindowExtMacOS::ns_view
.EventLoopWindowTargetExtWayland::wayland_display
.WindowExtWayland::wayland_surface
.WindowExtWayland::wayland_display
.WindowExtX11::xlib_window
.WindowExtX11::xlib_display
.WindowExtX11::xlib_screen_id
.WindowExtX11::xcb_connection
.raw-window-handle
inwindow
module.ElementState::is_pressed
.Window::pre_present_notify
to notify winit before presenting to the windowing system.Window::set_blur
to request a blur behind the window; implemented on Wayland for now.Window::show_window_menu
to request a titlebar/system menu; implemented on Wayland/Windows for now.AsFd
/AsRawFd
forEventLoop<T>
on X11 and Wayland.PartialOrd
andOrd
forMouseButton
.PartialOrd
andOrd
on types in thedpi
module.WindowBuilder
Send + Sync
.MonitorHandle
andVideoMode
usable from other threads.EventLoopBuilderExtAndroid::handle_volume_keys
to indicate that the application will handle the volume keys manually.DeviceId
to contain device id's.ModifiersChanged
not being sent.Window::outer_size
now accounts for client side decorations.Window::drag_resize_window
method.WINIT_WAYLAND_CSD_THEME
variable.TouchPhase::Canceled
being sent for moved events.Occluded
event with xdg-shell v6RedrawRequested
events so redraws will align with compositor.ControlFlow::WaitUntil
now uses the Prioritized Task Scheduling API.setTimeout()
, with a trick to circumvent throttling to 4ms, is used as a fallback.EventLoopProxy
now implementsSend
.Window
now implementsSend
andSync
.padding
,border
, andmargin
when getting or setting the canvas position.DeviceEvent::Motion
,DeviceEvent::MouseWheel
,DeviceEvent::Button
andDeviceEvent::Key
support.EventLoopWindowTargetExtWebSys
andPollStrategy
, which allows to set different strategies forControlFlow::Poll
. By default the Prioritized Task Scheduling API is used, but an option to useWindow.requestIdleCallback
is available as well. Both usesetTimeout()
, with a trick to circumvent throttling to 4ms, as a fallback.WindowBuilderExtWebSys::with_append()
to append the canvas element to the web page on creation.spawn
.ControlFlow::WaitUntil
to never wake up before the given time.DeviceEvent::MouseMotion
only being emitted for each canvas instead of the whole window.Window:::set_fullscreen
doing nothing when called outside the event loop but during transient activation.WindowBuilder
methods doing nothing.Window
methods using incorrect HTML attributes instead of CSS properties.beforeunload
event and map bfcache loading/unloading toSuspended
/Resumed
events.Window::focus_window()
.Window::set_(min|max)_inner_size()
.WindowEvent::Occluded
.MonitorHandle
.Window::is_dark_mode()
, which was replaced withWindow::theme()
.EventLoopWindowTarget::listen_device_events()
settings.Window.requestAnimationFrame()
to throttleRedrawRequested
events.Window::request_redraw
not waking the event loop when called from outside the loop.drag_resize_window
method support.DeviceEvent
.WindowBuilderExtWindows::with_class_name
to customize the internal class name.CursorEnter/Left
not being sent when grabbing the mouse.RedrawRequested
not being delivered when callingWindow::request_redraw
fromRedrawRequested
.windows-sys
version 0.48.0.with_embedded_parent_window
function to the window builder to allow embedding a window into another window.ControlFlow::Poll
andControlFlow::WaitUntil
.visual_id
in returnedraw-window-handle
.ControlFlow::Poll
toControlFlow::Poll
.WindowEvent::Occluded(false)
,WindowEvent::Occluded(true)
when application enters/leaves foreground.WindowExtMacOS
andEventLoopWindowTargetExtMacOS
.Globe
key.window.set_minimized(false)
.Window
.Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.