---
title: "winit 0.30.0 Breaking Changes on crates.io | Since.dev"
description: "What each winit release removed, renamed or changed: 216 breaking changes in 6 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/winit
last_updated: 2026-12-04
---

# winit breaking changes

winit 0.30.0 (April 27, 2024) is its newest release with breaking changes, 34 of them. The first: Removed EventLoop. Every breaking API change we have recorded in winit on crates.io: 216 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.30.13`, released March 2, 2026. [Source repository](https://github.com/rust-windowing/winit)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.27.0](#v-0-27-0) to [0.30.0](#v-0-30-0): 195 breaking changes in 5 versions.

## winit 0.30.0 breaking changes

winit 0.30.0, released April 27, 2024: 34 breaking changes.

- **Removed** `EventLoop`  

EventLoop no longer dereferences to EventLoopWindowTarget. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Removed** `EventLoopBuilder.with_user_event`  

EventLoopBuilder::with_user_event is removed; use EventLoop::with_user_event. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Removed** `EventLoopError.AlreadyRunning`  

The redundant EventLoopError::AlreadyRunning variant is removed. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Removed** `platform.x11.XNotSupported`  

The platform::x11::XNotSupported export is removed. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Removed** `Window.new`  

Window::new is removed; create windows inside the running event loop with ActiveEventLoop::create_window. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Removed** `WindowBuilder`  

WindowBuilder is removed; use WindowAttributes instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Renamed** `EventLoopWindowTarget`  

EventLoopWindowTarget was renamed to ActiveEventLoop. Update code that uses the old name. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Renamed** `platform.x11.XWindowType`  

XWindowType was renamed to WindowType in the x11 platform module. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Renamed** `RawWindowHandle.Web`  

On Web, RawWindowHandle::Web is replaced by RawWindowHandle::WebCanvas. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Renamed** `SmartMagnify`  

SmartMagnify was renamed to DoubleTapGesture. Update code that uses the old name. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Renamed** `TouchpadMagnify`  

TouchpadMagnify was renamed to PinchGesture. Update code that uses the old name. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Renamed** `TouchpadRotate`  

TouchpadRotate was renamed to RotationGesture. Update code that uses the old name. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Renamed** `VideoMode`  

VideoMode was renamed to VideoModeHandle because it no longer holds static data. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Behavior changed**  

On Windows, child windows without decorations no longer get WS_CAPTION, WS_BORDER, or WS_EX_WINDOWEDGE styles. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Behavior changed**  

On Web, fullscreen requests are no longer queued when there is no transient activation. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Configuration changed**  

Logging now uses tracing instead of log. Enable the log feature on tracing to restore the old behavior. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Signature changed** `ActiveEventLoop`  

ActiveEventLoop no longer takes a generic parameter T. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.30.0)
- **Signature changed** `winit::dpi`  

Was mod dpi; now pub use dpi. [crates.io](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **Signature changed** `winit::monitor::VideoMode`  

Was struct VideoMode; now type VideoMode = VideoModeHandle. [crates.io](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **Signature changed** `winit::platform::pump_events::EventLoopExtPumpEvents::UserEvent`  

Was type UserEvent; now type UserEvent: 'static. [crates.io](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **Signature changed** `winit::platform::run_on_demand::EventLoopExtRunOnDemand::UserEvent`  

Was type UserEvent; now type UserEvent: 'static. [crates.io](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **Signature changed** `winit::platform::web::EventLoopExtWebSys::UserEvent`  

Was type UserEvent; now type UserEvent: 'static. [crates.io](https://crates.io/crates/winit/0.30.0)
- **Signature changed** `winit::window::Fullscreen::Exclusive`  

Was Exclusive(VideoMode); now Exclusive(VideoModeHandle). [crates.io](https://crates.io/crates/winit/0.30.0)
- **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](https://crates.io/crates/winit/0.30.0)
- **Signature changed** `winit::window::WindowAttributes::fullscreen`  

WindowAttributes::fullscreen is removed and replaced by a directly exposed field. [crates.io](https://crates.io/crates/winit/0.30.0)

## winit 0.29.2 breaking changes

winit 0.29.2, released October 21, 2023: 95 breaking changes.

- **Removed** `ControlFlow.Exit`  

Call EventLoopWindowTarget::exit() or exiting() to stop the loop instead of returning ControlFlow::Exit. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `ControlFlow.ExitWithCode`  

ControlFlow::ExitWithCode(\_) is gone entirely; use EventLoopWindowTarget::exit() instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `CursorIcon.Arrow`  

The CursorIcon::Arrow variant is gone. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `DeviceEvent.Text`  

The DeviceEvent::Text variant is gone; handle text through the keyboard input changes instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `Event.ReceivedCharacter`  

Use KeyEvent.text in combination with WindowEvent::Ime instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `Event.RedrawRequested`  

RedrawRequested is now a WindowEvent variant; match on WindowEvent::RedrawRequested instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `EventLoopWindowTargetExtWayland.wayland_display`  

Retrieve the handle through raw-window-handle trait implementations instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `MainEventsCleared`  

The MainEventsCleared event is gone. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `modifiers`  

All previously deprecated modifiers fields are removed. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)
- **Removed** `platform.windows.HINSTANCE`  

Retrieve the handle through raw-window-handle trait implementations instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.2)

And 85 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## winit 0.29.1-beta breaking changes

winit 0.29.1-beta, released October 21, 2023: 26 breaking changes.

- **Removed** `EventLoopExtRunReturn.run_return`  

Use pump_events or run_ondemand instead of run_return. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `EventLoopWindowTargetExtWayland.wayland_display`  

Use raw-window-handle trait implementations instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `MainEventsCleared`  

Use AboutToWait instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `platform.windows.HINSTANCE`  

Use raw-window-handle trait implementations instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `RedrawEventsCleared`  

Use AboutToWait instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `Window.is_dark_mode`  

Use Window::theme instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `WindowExtIOS.ui_view`  

Use raw-window-handle trait implementations instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `WindowExtIOS.ui_view_controller`  

Use raw-window-handle trait implementations instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `WindowExtIOS.ui_window`  

Use raw-window-handle trait implementations instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)
- **Removed** `WindowExtMacOS.ns_view`  

Use raw-window-handle trait implementations instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.1-beta)

And 16 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## winit 0.29.0-beta.0 breaking changes

winit 0.29.0-beta.0, released October 21, 2023: 22 breaking changes.

- **Removed** `CursorIcon.Arrow`  

CursorIcon::Arrow removed in winit 0.29.0-beta.0 [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Removed** `Event.ReceivedCharacter`  

Use KeyEvent.text together with WindowEvent::Ime instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Removed** `modifiers`  

All deprecated modifiers fields were removed; use the replacement modifiers state instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Removed** `ScanCode`  

ScanCode replaced by KeyCode enum in winit 0.29.0-beta.0 [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Removed** `VirtualKeyCode`  

VirtualKeyCode replaced by Key enum in winit 0.29.0-beta.0 [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Renamed** `CursorIcon.Hand`  

CursorIcon::Hand renamed to Pointer in winit 0.29.0-beta.0 [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Renamed** `DeviceEventFilter`  

The type was renamed and its variant behavior is reversed. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Renamed** `EventLoopWindowTarget.set_device_event_filter`  

set_device_event_filter renamed to listen_device_events in winit 0.29.0-beta.0 [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Renamed** `instant`  

instant replaced by web_time on Web in winit 0.29.0-beta.0 [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)
- **Renamed** `ModifiersState.CTRL`  

ModifiersState::CTRL renamed to CONTROL in winit 0.29.0-beta.0 [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.29.0-beta.0)

And 12 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## winit 0.28.0 breaking changes

winit 0.28.0, released February 2, 2023: 18 breaking changes.

- **Removed**  

Support for raw-window-handle version 0.4 was removed, so code using that version must upgrade. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **Removed** `platform.unix.WindowExtUnix.is_ready`  

The deprecated platform::unix::WindowExtUnix::is_ready method was removed. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **Removed** `Window.set_always_on_top`  

Window::set_always_on_top and related APIs were removed. Use Window::set_window_level instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **Removed** `WindowBuilder.with_parent`  

The platform specific WindowBuilder::with_parent API was removed. Use WindowBuilder::with_parent_window instead. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **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](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **Removed** `WindowBuilderExtWayland.with_wayland_csd_theme`  

Platform specific theme builder APIs were removed in favour of WindowBuilder::with_theme. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **Removed** `WindowBuilderExtWindows.with_theme`  

Platform specific theme builder APIs were removed in favour of WindowBuilder::with_theme. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **Removed** `WindowBuilderExtX11.with_gtk_theme_variant`  

WindowBuilderExtX11::with_gtk_theme_variant was removed and has no named replacement in the notes. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **Removed** `WindowExtWayland.wayland_set_csd_theme`  

WindowExtWayland::wayland_set_csd_theme was removed and has no named replacement in the notes. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)
- **Removed** `WindowExtWindows.theme`  

WindowExtWindows::theme was removed in favour of Window::theme. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.28.0)

And 8 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## winit 0.27.0 breaking changes

winit 0.27.0, released July 26, 2022: 21 breaking changes.

- **Removed** `WindowAttributes`  

All its functionality is available from WindowBuilder, so code using WindowAttributes must switch to WindowBuilder. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **Renamed** `EventLoopExtMacOS`  

The trait is replaced and its methods are renamed; update code to the builder version. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **Renamed** `EventLoopExtUnix`  

The trait is replaced and its methods are renamed; update code to the builder version. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **Renamed** `EventLoopExtWindows`  

The trait is replaced and its methods are renamed; update code to the builder version. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **Renamed** `VideoMode.refresh_rate`  

The refresh rate is now reported in millihertz for better precision. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **Renamed** `Window.with_app_id`  

Use with_name instead of with_app_id for the Unix window builder extension. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **Renamed** `Window.with_class`  

Use with_name instead of with_class for the Unix window builder extension. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **Behavior changed** `EventLoopBuilder.build`  

Creating more than one EventLoop now panics, so code must create only one event loop. [github.com](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **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](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)
- **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](https://github.com/rust-windowing/winit/releases/tag/v0.27.0)

And 11 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
