raw-window-handle
Interoperability library for Rust Windowing applications.
0.6.2
93M downloads/mo
#846 most downloaded on crates.io
rust-windowing/raw-window-handle
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 2.0 years
Nearly every release is documented
notes for 16 of 16 stable releases
4 versions withdrawn
withdrawn after publishing
7 years old
20 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
20 releases · Jul 2019 to May 2024
2020
2021
2022
2023
2024
2025
2026
Releases
latest 20-
0.6.217 May 2024 -
0.6.120 Apr 2024Release notes
Open source →- Add safe constructors for window handles. This may be useful for implementing windowing systems with zero unsafe code. (#159)
- Improve documentation for Apple window handles. (#160)
- Add a clarification as to what circumstances Windows handles are considered "valid" under. (#163)
-
0.6.001 Oct 2023Release notes
Open source →- Breaking: Raw pointer handles now use
NonNullwhere appropriate, to avoid null pointer dereferences. - Breaking: Renamed
emptymethods tonew, and take parameters in most of those, to better match normal Rust semantics. - Breaking:
HasRaw(Display/Window)Handle::raw_(display/window)_handlereturns a result indicating if fetching the window handle failed (#122). - Breaking: Remove the
Active/ActiveHandletypes from the public API (#126). - Breaking: Remove
AppKitWindowHandle::ns_windowandUiKitWindowHandle::ui_windowsince they can be retrieved from the view (#129). - Breaking: Remove
Copyderive fromRawWindowHandleandWindowHandle(#140). - Implement
PartialEq,EqandHashforWindowHandletoo. (#128) - Implement the relevant traits for
&mut T where T: <trait>. (#130) - Add web handles for
wasm-bindgenv0.2. They are locked behind thewasm-bindgen-0-2feature. (#134) - Deprecate the raw window/display handle traits. They will be removed at the next stable release. (#139)
Release notes
Open source →- Breaking: Raw pointer handles now use
NonNullwhere appropriate, to avoid null pointer dereferences. - Breaking: Renamed
emptymethods tonew, and take parameters in most of those, to better match normal Rust semantics. - Breaking:
HasRaw(Display/Window)Handle::raw_(display/window)_handlereturns a result indicating if fetching the window handle failed (#122). - Breaking: Remove the
Active/ActiveHandletypes from the public API (#126). - Breaking: Remove
AppKitWindowHandle::ns_windowandUiKitWindowHandle::ui_windowsince they can be retrieved from the view (#129). - Breaking: Remove
Copyderive fromRawWindowHandleandWindowHandle(#140). - Implement
PartialEq,EqandHashforWindowHandletoo. (#128) - Implement the relevant traits for
&mut T where T: <trait>. (#130) - Add web handles for
wasm-bindgenv0.2. They are locked behind thewasm-bindgen-0-2feature. (#134) - Deprecate the raw window/display handle traits. They will be removed at the next stable release. (#139)
- Breaking: Raw pointer handles now use
-
0.5.231 Mar 2023Release notes
Open source →- Add several types for using raw window handles safely, including
HasWindowHandle,WindowHandle,HasDisplayHandle,DisplayHandleandActive(#110).
- Add several types for using raw window handles safely, including
-
0.5.108 Mar 2023Release notes
Open source →- Add the
rust-versionfield (1.64). - Implemented
FromforRawWindowHandleandRawDisplayHandle
- Add the
-
0.5.015 Jul 2022Release notes
Open source →- Breaking: The
RawWindowHandlevariants were split intoRawDisplayHandleandRawWindowHandle. - The X11 screen is now present in new
XlibDisplayHandleandXcbDisplayHandle.
- Add GBM support.
- Breaking: The
-
0.4.329 Mar 2022 -
0.4.224 Nov 2021Release notes
Open source →- Also implement
HasRawWindowHandleforRc<T>, andArc<T>whereT: ?Sized.
- Also implement
-
0.4.119 Nov 2021 withdrawnRelease notes
Open source →- Added an impl of
HasRawWindowHandlefor&T,Rc<T>, andArc<T>. The impls forRc<T>andArc<T>require theallocfeature.
- Added an impl of
-
0.4.015 Nov 2021 withdrawnRelease notes
Open source →- Breaking: Remove
_do_not_usetags to use#[non_exhaustive]macro - Breaking:
RawWindowHandlevariants are no longer cfg-guarded by platform. - Breaking: Rename
IOStoUiKit. - Breaking: Rename
MacOStoAppKit. - Breaking: Rename
WindowstoWin32. - Breaking: Rename
RedoxtoOrbital. - Breaking: Rename
AndroidtoAndroidNdk. - Breaking: Inner window handle structs are now exported at crate root.
- Added Windows
WinRthandle.
0.3.4 (2021-11-27)
- Add
HasRawWindowHandleimplementation forHasRawWindowHandlein the newerv0.4. This allows "provider" crates that implementHasRawWindowHandle(likewinit,sdl2,glfw,fltk, ...) to upgrade tov0.4without a breaking change. Afterwards "consumer" crates (likegfx,wgpu,rfd, ...) can start upgrading with minimal breakage for their users.
- Breaking: Remove
-
0.3.427 Nov 2021 -
0.3.301 Dec 2019 -
0.3.229 Nov 2019 -
0.3.127 Oct 2019Release notes
Open source →- Remove
RawWindowHandle'sHasRawWindowHandleimplementation, as it was unsound (see #35) - Explicitly require that handles within
RawWindowHandlebe valid for the lifetime of theHasRawWindowHandleimplementation that provided them.
- Remove
-
0.3.005 Oct 2019 withdrawnRelease notes
Open source →- Breaking: Rename
XLib.surfacetoXLib.window, as that more accurately represents the underlying type. - Implement
HasRawWindowHandleforRawWindowHandle - Add
HINSTANCEfield toWindowsHandle.
- Breaking: Rename
-
0.2.027 Sep 2019Release notes
Open source →- Breaking: Rename
X11toXLib. - Add XCB support.
- Add Web support.
- Add Android support.
- Breaking: Rename
-
0.1.213 Aug 2019Release notes
Open source →- Fix use of private
_non_exhaustivefield in platform handle structs preventing structs from getting initialized.
- Fix use of private
-
0.1.113 Aug 2019 -
0.1.013 Aug 2019 -
0.0.025 Jul 2019 withdrawnNothing published for this version