fix macos build

This commit is contained in:
Lucas Nogueira
2026-01-26 10:00:05 -03:00
parent 98fdc7c5fa
commit c741e3f15e
4 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -9060,7 +9060,6 @@ dependencies = [
"jni",
"objc2 0.6.3",
"objc2-ui-kit",
"objc2-web-kit",
"raw-window-handle",
"serde",
"serde_json",
@@ -9107,6 +9106,7 @@ dependencies = [
"objc2 0.6.3",
"objc2-app-kit",
"objc2-foundation 0.3.0",
"objc2-web-kit",
"once_cell",
"percent-encoding",
"raw-window-handle",

View File

@@ -56,6 +56,7 @@ objc2-app-kit = { version = "0.3", features = [
"NSScreen",
"NSGraphics",
] }
objc2-web-kit = { version = "0.3", features = ["objc2-app-kit", "WKWebView"] }
[target."cfg(target_os = \"android\")".dependencies]
jni = "0.21"

View File

@@ -4747,7 +4747,7 @@ You may have it installed on another user account, but it is not available for t
})
.or_else(|| opener.as_ref().map(|opener| &opener.target_configuration))
{
webview_builder = webview_builder.with_webview_configuration(webview_configuration);
webview_builder = webview_builder.with_webview_configuration(webview_configuration.clone());
}
#[cfg(any(target_os = "windows", target_os = "android"))]

View File

@@ -59,7 +59,6 @@ objc2-ui-kit = { version = "0.3.0", default-features = false, features = [
[target."cfg(target_os = \"macos\")".dependencies]
url = "2"
objc2 = "0.6"
objc2-web-kit = { version = "0.3", features = ["objc2-app-kit", "WKWebView"] }
[features]
devtools = []