mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
implement webview_version
This commit is contained in:
@@ -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) => {{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user