Jelajahi Sumber

fix(deps): pin raw-window-handle to 0.5.0 (#6480)

* fix(deps): pin raw-window-handle to 0.5.0

* lint [skip ci]
Lucas Fernandes Nogueira 2 tahun lalu
induk
melakukan
c46c09f31d

+ 7 - 0
.changes/pin-raw-window-handle.md

@@ -0,0 +1,7 @@
+---
+"tauri": patch
+"tauri-runtime": patch
+"tauri-runtime-wry": patch
+---
+
+Pin raw-window-handle to 0.5.0 to keep MSRV.

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

@@ -18,7 +18,7 @@ tauri-runtime = { version = "0.12.1", path = "../tauri-runtime" }
 tauri-utils = { version = "1.2.1", path = "../tauri-utils" }
 uuid = { version = "1", features = [ "v4" ] }
 rand = "0.8"
-raw-window-handle = "0.5"
+raw-window-handle = "=0.5.0"
 
 [target."cfg(windows)".dependencies]
 webview2-com = "0.19.1"

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

@@ -30,7 +30,7 @@ tauri-utils = { version = "1.2.1", path = "../tauri-utils" }
 uuid = { version = "1", features = [ "v4" ] }
 http = "0.2.4"
 http-range = "0.1.4"
-raw-window-handle = "0.5"
+raw-window-handle = "=0.5.0"
 rand = "0.8"
 url = { version = "2" }
 

+ 1 - 2
core/tauri-utils/src/assets.rs

@@ -174,8 +174,7 @@ impl Assets for EmbeddedAssets {
             .get(html_path.as_ref())
             .copied()
             .into_iter()
-            .flatten()
-            .into_iter(),
+            .flatten(),
         )
         .copied(),
     )

+ 1 - 1
core/tauri/Cargo.toml

@@ -73,7 +73,7 @@ attohttpc = { version = "0.22", features = [ "compress", "json", "form" ], optio
 open = { version = "3.0", optional = true }
 shared_child = { version = "1.0", optional = true }
 os_pipe = { version = "1.0", optional = true }
-raw-window-handle = "0.5"
+raw-window-handle = "=0.5.0"
 minisign-verify = { version = "0.2", optional = true }
 time = { version = "=0.3.15", features = [ "parsing", "formatting" ], optional = true }
 os_info = { version = "=3.5.0", optional = true }

+ 1 - 0
core/tauri/src/app/tray.rs

@@ -679,6 +679,7 @@ impl<R: Runtime> SystemTrayMenuItemHandle<R> {
       .map_err(Into::into)
   }
 
+  /// Sets the native image for this item.
   #[cfg(target_os = "macos")]
   #[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))]
   pub fn set_native_image(&self, image: crate::NativeImage) -> crate::Result<()> {