remove webview2-com from tauri-runtime

This commit is contained in:
FabianLars 2026-02-05 16:06:37 +01:00
parent 165a24ef83
commit 081910f61c
No known key found for this signature in database
4 changed files with 4 additions and 8 deletions

1
Cargo.lock generated
View File

@ -9073,7 +9073,6 @@ dependencies = [
"tauri-utils",
"thiserror 2.0.12",
"url",
"webview2-com",
"windows 0.61.1",
]

View File

@ -39,9 +39,6 @@ cookie = "0.18"
version = "0.61"
features = ["Win32_Foundation", "Win32_System_WinRT"]
[target."cfg(windows)".dependencies]
webview2-com = "0.38"
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
gtk = { version = "0.18", features = ["v3_24"] }

View File

@ -193,8 +193,8 @@ tray-icon = ["dep:tray-icon"]
tracing = ["dep:tracing", "tauri-macros/tracing", "tauri-runtime-wry?/tracing"]
test = []
compression = ["tauri-macros/compression", "tauri-utils/compression"]
wry = ["webview2-com", "webkit2gtk", "tauri-runtime-wry"]
cef = ["tauri-runtime-cef"]
wry = ["dep:webview2-com", "dep:webkit2gtk", "dep:tauri-runtime-wry"]
cef = ["dep:tauri-runtime-cef"]
# TODO: Remove in v3 - wry does not have this feature anymore
objc-exception = []
linux-libxdo = ["tray-icon/libxdo", "muda/libxdo"]

View File

@ -183,7 +183,7 @@ impl PlatformWebview {
}
/// Returns the WebView2 controller.
#[cfg(windows)]
#[cfg(all(windows, feature = "wry"))]
#[cfg_attr(docsrs, doc(cfg(windows)))]
pub fn controller(
&self,
@ -192,7 +192,7 @@ impl PlatformWebview {
}
/// Returns the WebView2 environment.
#[cfg(windows)]
#[cfg(all(windows, feature = "wry"))]
#[cfg_attr(docsrs, doc(cfg(windows)))]
pub fn environment(
&self,