Эх сурвалжийг харах

chore(deps): update `windows` to 0.30

Lucas Nogueira 3 жил өмнө
parent
commit
b9c00d2db5

+ 3 - 3
core/tauri-runtime-wry/Cargo.toml

@@ -14,7 +14,7 @@ readme = "README.md"
 
 [dependencies]
 #wry = { version = "0.12", default-features = false, features = [ "file-drop", "protocol" ] }
-wry = { git = "https://github.com/tauri-apps/wry", rev = "3284f8d442978269f7654edbdfc9bc51022eaa40", default-features = false, features = [ "file-drop", "protocol", "transparent", "fullscreen" ] }
+wry = { git = "https://github.com/tauri-apps/wry", rev = "a3829035a3e49e76db77b0db6924e147831124c7", default-features = false, features = [ "file-drop", "protocol", "transparent", "fullscreen" ] }
 tauri-runtime = { version = "0.2.1", path = "../tauri-runtime" }
 tauri-utils = { version = "1.0.0-beta.3", path = "../tauri-utils" }
 uuid = { version = "0.8.2", features = [ "v4" ] }
@@ -29,10 +29,10 @@ once_cell = { version = "1.8", optional = true}
 
 [target."cfg(windows)".dependencies]
 ico = "0.1"
-webview2-com = "0.9.0"
+webview2-com = "0.10.0"
 
 [target."cfg(windows)".dependencies.windows]
-version = "0.29.0"
+version = "0.30.0"
 features = [
   "Win32_Foundation",
 ]

+ 1 - 1
core/tauri-runtime-wry/src/lib.rs

@@ -2098,7 +2098,7 @@ fn handle_user_message(
           #[cfg(target_os = "macos")]
           WindowMessage::NSWindow(tx) => tx.send(NSWindow(window.ns_window())).unwrap(),
           #[cfg(windows)]
-          WindowMessage::Hwnd(tx) => tx.send(Hwnd(window.hwnd() as _)).unwrap(),
+          WindowMessage::Hwnd(tx) => tx.send(Hwnd(HWND(window.hwnd() as _))).unwrap(),
           #[cfg(any(
             target_os = "linux",
             target_os = "dragonfly",

+ 1 - 1
core/tauri-runtime/Cargo.toml

@@ -36,7 +36,7 @@ infer = "0.4"
 webview2-com = "0.9.0"
 
 [target."cfg(windows)".dependencies.windows]
-version = "0.29.0"
+version = "0.30.0"
 features = [
   "Win32_Foundation",
 ]

+ 1 - 1
core/tauri/src/window.rs

@@ -512,7 +512,7 @@ impl<R: Runtime> Window<R> {
       .window
       .dispatcher
       .hwnd()
-      .map(|hwnd| hwnd as *mut _)
+      .map(|hwnd| hwnd.0 as *mut _)
       .map_err(Into::into)
   }