From b0b64a9a15bbe23e777850f7e9455afa73cb49f5 Mon Sep 17 00:00:00 2001 From: linkmauve Date: Mon, 6 May 2024 17:50:25 +0200 Subject: [PATCH] Reexport older versions of raw-window-handle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the user decides to use an older version of raw-window-handle, through the rwh_04 or rwh_05 features, it makes sense to reexport the crate so they don’t have to depend on it manually and can instead use winit::raw_window_handle. --- src/changelog/unreleased.md | 4 ++++ src/lib.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/changelog/unreleased.md b/src/changelog/unreleased.md index 6b0849c0..2385ab8a 100644 --- a/src/changelog/unreleased.md +++ b/src/changelog/unreleased.md @@ -40,6 +40,10 @@ changelog entry. ## Unreleased +### Added + +- Reexport `raw-window-handle` versions 0.4 and 0.5 as `raw_window_handle_04` and `raw_window_handle_05`. + ### Fixed - On macOS, fix panic on exit when dropping windows outside the event loop. diff --git a/src/lib.rs b/src/lib.rs index cef9106e..eb1bd686 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -178,6 +178,10 @@ #![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg_hide), doc(cfg_hide(doc, docsrs)))] #![allow(clippy::missing_safety_doc)] +#[cfg(feature = "rwh_04")] +pub use rwh_04 as raw_window_handle_04; +#[cfg(feature = "rwh_05")] +pub use rwh_05 as raw_window_handle_05; #[cfg(feature = "rwh_06")] pub use rwh_06 as raw_window_handle;