From 41cd1303c0ad04e1fa465ff6c739b47c41cafb29 Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 9 Nov 2023 23:20:04 +0900 Subject: [PATCH] feat: make `HasRawWindowHandle` trait public Signed-off-by: rhysd --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de4e553706..d056753b0d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Cross-platform WebView rendering library in Rust that supports all major desktop ## Overview WRY connects the web engine on each platform and provides easy to use and unified interface to render WebView. -The webview requires a running event loop and a window type that implements `HasWindowHandle`, +The webview requires a running event loop and a window type that implements `HasRawWindowHandle`, or a gtk container widget if you need to support X11 and Wayland. You can use a windowing library like `tao` or `winit`. diff --git a/src/lib.rs b/src/lib.rs index 98dc32c5cc..2b1ba3d078 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -198,7 +198,7 @@ use android::*; target_os = "openbsd" ))] pub(crate) mod webkitgtk; -use raw_window_handle::HasRawWindowHandle; +pub use raw_window_handle::HasRawWindowHandle; #[cfg(any( target_os = "linux", target_os = "dragonfly",