Skip to content

Commit

Permalink
Reexport older versions of raw-window-handle
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
linkmauve committed Apr 27, 2024
1 parent 337d507 commit d96ce96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
#[cfg(feature = "rwh_05")]
pub use rwh_05 as raw_window_handle;
#[cfg(feature = "rwh_06")]
pub use rwh_06 as raw_window_handle;

Expand Down

0 comments on commit d96ce96

Please sign in to comment.