implement webview_version

This commit is contained in:
FabianLars
2026-03-09 12:19:43 +01:00
parent 2967cf2091
commit a4ea971156
2 changed files with 14 additions and 0 deletions

View File

@@ -51,6 +51,16 @@ mod cef_impl;
mod cef_webview;
mod utils;
pub fn webview_version() -> Result<String> {
Ok(format!(
"{}.{}.{}.{}",
cef_dll_sys::CHROME_VERSION_MAJOR,
cef_dll_sys::CHROME_VERSION_MINOR,
cef_dll_sys::CHROME_VERSION_PATCH,
cef_dll_sys::CHROME_VERSION_BUILD
))
}
#[macro_export]
macro_rules! getter {
($self: ident, $rx: expr, $message: expr) => {{

View File

@@ -227,6 +227,10 @@ use utils::assets::{AssetKey, CspHash, EmbeddedAssets};
#[cfg_attr(docsrs, doc(cfg(feature = "wry")))]
pub use tauri_runtime_wry::webview_version;
#[cfg(feature = "cef")]
#[cfg_attr(docsrs, doc(cfg(feature = "cef")))]
pub use tauri_runtime_cef::webview_version;
#[cfg(target_os = "macos")]
#[cfg_attr(docsrs, doc(cfg(target_os = "macos")))]
pub use runtime::ActivationPolicy;