winit breaking changes
Updated December 4, 2026
On this page
Latest version 0.30.13, released March 2, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
winit 0.30.0 breaking changes
- Removed
EventLoop
EventLoop no longer dereferences to EventLoopWindowTarget. github.com - Removed
EventLoopBuilder.with_user_event
EventLoopBuilder::with_user_event is removed; use EventLoop::with_user_event. github.com - Removed
EventLoopError.AlreadyRunning
The redundant EventLoopError::AlreadyRunning variant is removed. github.com - Removed
platform.x11.XNotSupported
The platform::x11::XNotSupported export is removed. github.com - Removed
Window.new
Window::new is removed; create windows inside the running event loop with ActiveEventLoop::create_window. github.com - Removed
WindowBuilder
WindowBuilder is removed; use WindowAttributes instead. github.com - Renamed
EventLoopWindowTarget
EventLoopWindowTarget was renamed to ActiveEventLoop. Update code that uses the old name. github.com - Renamed
platform.x11.XWindowType
XWindowType was renamed to WindowType in the x11 platform module. github.com - Renamed
RawWindowHandle.Web
On Web, RawWindowHandle::Web is replaced by RawWindowHandle::WebCanvas. github.com - Renamed
SmartMagnify
SmartMagnify was renamed to DoubleTapGesture. Update code that uses the old name. github.com - Renamed
TouchpadMagnify
TouchpadMagnify was renamed to PinchGesture. Update code that uses the old name. github.com - Renamed
TouchpadRotate
TouchpadRotate was renamed to RotationGesture. Update code that uses the old name. github.com - Renamed
VideoMode
VideoMode was renamed to VideoModeHandle because it no longer holds static data. github.com - Behavior changed
On Windows, child windows without decorations no longer get WS_CAPTION, WS_BORDER, or WS_EX_WINDOWEDGE styles. github.com - Behavior changed
On Web, fullscreen requests are no longer queued when there is no transient activation. github.com - Configuration changed
Logging now uses tracing instead of log. Enable the log feature on tracing to restore the old behavior. github.com - Signature changed
ActiveEventLoop
ActiveEventLoop no longer takes a generic parameter T. github.com - Signature changed
winit::dpi
Was mod dpi; now pub use dpi. crates.io - Signature changed
winit::event_loop::EventLoop::run
Was fn run<F>(self, event_handler: F) -> Result<(), EventLoopError> where F: FnMut(Event<T>, &EventLoopWindowTarget<T>),; now fn run<F>(self, event_handler: F) -> Result<(), EventLoopError> where F: FnMut(Event<T>, &ActiveEventLoop),. crates.io - Signature changed
winit::event_loop::EventLoop::with_user_event
EventLoop::with_user_event now returns an EventLoopBuilder, so code relying on the previous return type must change. crates.io - Signature changed
winit::event::WindowEvent::CursorMoved
Was CursorMoved {device_id: DeviceId, /// (x, y) coords in pixels relative to the top-left corner of the window. Because the range of this data is /// limited by the display area and it may have been transformed by the OS to implement... crates.io - Signature changed
winit::event::WindowEvent::KeyboardInput
Was KeyboardInput {device_id: DeviceId, event: KeyEvent, /// If `true`, the event was generated synthetically by winit /// in one of the following circumstances: /// /// * Synthetic key press events are generated for all keys pressed ///... crates.io - Signature changed
winit::monitor::MonitorHandle::video_modes
Was fn video_modes(&self) -> impl Iterator<Item = VideoMode>; now fn video_modes(&self) -> impl Iterator<Item = VideoModeHandle>. crates.io - Signature changed
winit::monitor::VideoMode
Was struct VideoMode; now type VideoMode = VideoModeHandle. crates.io - Signature changed
winit::platform::ios::MonitorHandleExtIOS::preferred_video_mode
Was fn preferred_video_mode(&self) -> VideoMode; now fn preferred_video_mode(&self) -> VideoModeHandle. crates.io - Signature changed
winit::platform::pump_events::EventLoopExtPumpEvents::pump_events
Was fn pump_events<F>(&mut self, timeout: Option<Duration>, event_handler: F) -> PumpStatus where F: FnMut(Event<Self::UserEvent>, &EventLoopWindowTarget<Self::UserEvent>); now fn pump_events<F>(&mut self, timeout: Option<Duration>... crates.io - Signature changed
winit::platform::pump_events::EventLoopExtPumpEvents::UserEvent
Was type UserEvent; now type UserEvent: 'static. crates.io - Signature changed
winit::platform::run_on_demand::EventLoopExtRunOnDemand::run_on_demand
Was fn run_on_demand<F>(&mut self, event_handler: F) -> Result<(), EventLoopError> where F: FnMut(Event<Self::UserEvent>, &EventLoopWindowTarget<Self::UserEvent>); now fn run_on_demand<F>(&mut self, event_handler: F) -> Result<()... crates.io - Signature changed
winit::platform::run_on_demand::EventLoopExtRunOnDemand::UserEvent
Was type UserEvent; now type UserEvent: 'static. crates.io - Signature changed
winit::platform::web::EventLoopExtWebSys::spawn
Was fn spawn<F>(self, event_handler: F) where F: 'static + FnMut(Event<Self::UserEvent>, &EventLoopWindowTarget<Self::UserEvent>); now fn spawn<F>(self, event_handler: F) where F: 'static + FnMut(Event<Self::UserEvent>, &ActiveEventLoop). crates.io - Signature changed
winit::platform::web::EventLoopExtWebSys::UserEvent
Was type UserEvent; now type UserEvent: 'static. crates.io - Signature changed
winit::window::Fullscreen::Exclusive
Was Exclusive(VideoMode); now Exclusive(VideoModeHandle). crates.io - Signature changed
winit::window::Window::set_cursor_icon
Was fn set_cursor_icon(&self, cursor: CursorIcon); now fn set_cursor_icon(&self, icon: CursorIcon). crates.io - Signature changed
winit::window::WindowAttributes::fullscreen
WindowAttributes::fullscreen is removed and replaced by a directly exposed field. crates.io
winit 0.29.2 breaking changes
- Removed
ControlFlow.Exit
Call EventLoopWindowTarget::exit() or exiting() to stop the loop instead of returning ControlFlow::Exit. github.com - Removed
ControlFlow.ExitWithCode
ControlFlow::ExitWithCode(_) is gone entirely; use EventLoopWindowTarget::exit() instead. github.com - Removed
CursorIcon.Arrow
The CursorIcon::Arrow variant is gone. github.com - Removed
DeviceEvent.Text
The DeviceEvent::Text variant is gone; handle text through the keyboard input changes instead. github.com - Removed
Event.ReceivedCharacter
Use KeyEvent.text in combination with WindowEvent::Ime instead. github.com - Removed
Event.RedrawRequested
RedrawRequested is now a WindowEvent variant; match on WindowEvent::RedrawRequested instead. github.com - Removed
EventLoopWindowTargetExtWayland.wayland_display
Retrieve the handle through raw-window-handle trait implementations instead. github.com - Removed
MainEventsCleared
The MainEventsCleared event is gone. github.com - Removed
modifiers
All previously deprecated modifiers fields are removed. github.com - Removed
platform.windows.HINSTANCE
Retrieve the handle through raw-window-handle trait implementations instead. github.com
And 85 more in this version. Sign up to see every change
winit 0.29.1-beta breaking changes
- Removed
EventLoopExtRunReturn.run_return
Use pump_events or run_ondemand instead of run_return. github.com - Removed
EventLoopWindowTargetExtWayland.wayland_display
Use raw-window-handle trait implementations instead. github.com - Removed
MainEventsCleared
Use AboutToWait instead. github.com - Removed
platform.windows.HINSTANCE
Use raw-window-handle trait implementations instead. github.com - Removed
RedrawEventsCleared
Use AboutToWait instead. github.com - Removed
Window.is_dark_mode
Use Window::theme instead. github.com - Removed
WindowExtIOS.ui_view
Use raw-window-handle trait implementations instead. github.com - Removed
WindowExtIOS.ui_view_controller
Use raw-window-handle trait implementations instead. github.com - Removed
WindowExtIOS.ui_window
Use raw-window-handle trait implementations instead. github.com - Removed
WindowExtMacOS.ns_view
Use raw-window-handle trait implementations instead. github.com
And 16 more in this version. Sign up to see every change
winit 0.29.0-beta.0 breaking changes
- Removed
CursorIcon.Arrow
CursorIcon::Arrow removed in winit 0.29.0-beta.0 github.com - Removed
Event.ReceivedCharacter
Use KeyEvent.text together with WindowEvent::Ime instead. github.com - Removed
modifiers
All deprecated modifiers fields were removed; use the replacement modifiers state instead. github.com - Removed
ScanCode
ScanCode replaced by KeyCode enum in winit 0.29.0-beta.0 github.com - Removed
VirtualKeyCode
VirtualKeyCode replaced by Key enum in winit 0.29.0-beta.0 github.com - Renamed
CursorIcon.Hand
CursorIcon::Hand renamed to Pointer in winit 0.29.0-beta.0 github.com - Renamed
DeviceEventFilter
The type was renamed and its variant behavior is reversed. github.com - Renamed
EventLoopWindowTarget.set_device_event_filter
set_device_event_filter renamed to listen_device_events in winit 0.29.0-beta.0 github.com - Renamed
instant
instant replaced by web_time on Web in winit 0.29.0-beta.0 github.com - Renamed
ModifiersState.CTRL
ModifiersState::CTRL renamed to CONTROL in winit 0.29.0-beta.0 github.com
And 12 more in this version. Sign up to see every change
winit 0.28.0 breaking changes
- Removed
Support for raw-window-handle version 0.4 was removed, so code using that version must upgrade. github.com - Removed
platform.unix.WindowExtUnix.is_ready
The deprecated platform::unix::WindowExtUnix::is_ready method was removed. github.com - Removed
Window.set_always_on_top
Window::set_always_on_top and related APIs were removed. Use Window::set_window_level instead. github.com - Removed
WindowBuilder.with_parent
The platform specific WindowBuilder::with_parent API was removed. Use WindowBuilder::with_parent_window instead. github.com - Removed
WindowBuilderExtIOS.with_root_view_class
WindowBuilderExtIOS::with_root_view_class was removed. Add the desired layer as a sublayer of the view's layer instead. github.com - Removed
WindowBuilderExtWayland.with_wayland_csd_theme
Platform specific theme builder APIs were removed in favour of WindowBuilder::with_theme. github.com - Removed
WindowBuilderExtWindows.with_theme
Platform specific theme builder APIs were removed in favour of WindowBuilder::with_theme. github.com - Removed
WindowBuilderExtX11.with_gtk_theme_variant
WindowBuilderExtX11::with_gtk_theme_variant was removed and has no named replacement in the notes. github.com - Removed
WindowExtWayland.wayland_set_csd_theme
WindowExtWayland::wayland_set_csd_theme was removed and has no named replacement in the notes. github.com - Removed
WindowExtWindows.theme
WindowExtWindows::theme was removed in favour of Window::theme. github.com
And 8 more in this version. Sign up to see every change
winit 0.27.0 breaking changes
- Removed
WindowAttributes
All its functionality is available from WindowBuilder, so code using WindowAttributes must switch to WindowBuilder. github.com - Renamed
EventLoopExtMacOS
The trait is replaced and its methods are renamed; update code to the builder version. github.com - Renamed
EventLoopExtUnix
The trait is replaced and its methods are renamed; update code to the builder version. github.com - Renamed
EventLoopExtWindows
The trait is replaced and its methods are renamed; update code to the builder version. github.com - Renamed
VideoMode.refresh_rate
The refresh rate is now reported in millihertz for better precision. github.com - Renamed
Window.with_app_id
Use with_name instead of with_app_id for the Unix window builder extension. github.com - Renamed
Window.with_class
Use with_name instead of with_class for the Unix window builder extension. github.com - Behavior changed
EventLoopBuilder.build
Creating more than one EventLoop now panics, so code must create only one event loop. github.com - Behavior changed
MouseScrollDelta
A positive X value in MouseScrollDelta now means moving content to the right; code relying on the old sign must be adjusted. github.com - Behavior changed
Window.set_ime_allowed
IME input is no longer received unless Window::set_ime_allowed is called, and new WindowEvent::Ime events must be handled. github.com
And 11 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.