Skip to content

Commit 4c39e46

Browse files
authored
feat: current_version feature (#7026)
* feat: reexport webview_verion * chore: clippy problems * fix: add .changes md file * Update .changes/add-webview-version.md
1 parent 43858a3 commit 4c39e46

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.changes/add-webview-version.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'minor'
3+
---
4+
5+
Added `tauri::webview_version` , to get webview version.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ use wry::{
6868
};
6969

7070
pub use wry::application::window::{Window, WindowBuilder as WryWindowBuilder, WindowId};
71+
pub use wry::webview::webview_version;
7172

7273
#[cfg(windows)]
7374
use wry::webview::WebviewExtWindows;

core/tauri/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ use std::{collections::HashMap, fmt, sync::Arc};
210210
// Export types likely to be used by the application.
211211
pub use runtime::http;
212212

213+
#[cfg(feature = "wry")]
214+
#[cfg_attr(doc_cfg, doc(cfg(feature = "wry")))]
215+
pub use tauri_runtime_wry::webview_version;
216+
213217
#[cfg(target_os = "macos")]
214218
#[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))]
215219
pub use runtime::{menu::NativeImage, ActivationPolicy};

0 commit comments

Comments
 (0)