Selaa lähdekoodia

feat: current_version feature (#7026)

* feat: reexport webview_verion

* chore: clippy problems

* fix: add .changes md file

* Update .changes/add-webview-version.md
Amirhossein Akhlaghpour 2 vuotta sitten
vanhempi
sitoutus
4c39e46a3b
3 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 5 0
      .changes/add-webview-version.md
  2. 1 0
      core/tauri-runtime-wry/src/lib.rs
  3. 4 0
      core/tauri/src/lib.rs

+ 5 - 0
.changes/add-webview-version.md

@@ -0,0 +1,5 @@
+---
+'tauri': 'minor'
+---
+
+Added `tauri::webview_version` , to get webview version.

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

@@ -68,6 +68,7 @@ use wry::{
 };
 
 pub use wry::application::window::{Window, WindowBuilder as WryWindowBuilder, WindowId};
+pub use wry::webview::webview_version;
 
 #[cfg(windows)]
 use wry::webview::WebviewExtWindows;

+ 4 - 0
core/tauri/src/lib.rs

@@ -210,6 +210,10 @@ use std::{collections::HashMap, fmt, sync::Arc};
 // Export types likely to be used by the application.
 pub use runtime::http;
 
+#[cfg(feature = "wry")]
+#[cfg_attr(doc_cfg, doc(cfg(feature = "wry")))]
+pub use tauri_runtime_wry::webview_version;
+
 #[cfg(target_os = "macos")]
 #[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))]
 pub use runtime::{menu::NativeImage, ActivationPolicy};