Skip to content

Commit 2326be3

Browse files
authored
feat(core): update windows-rs to 0.37.0 (#4199)
1 parent 6830a73 commit 2326be3

14 files changed

Lines changed: 2106 additions & 2551 deletions

File tree

.changes/update-windows.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"tauri-runtime-wry": patch
3+
"tauri": patch
4+
"tauri-runtime": patch
5+
---
6+
7+
Update `windows-rs` to `0.37.0`, which requires Rust 1.61.0+.

.scripts/update-lockfiles.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44
# SPDX-License-Identifier: MIT
55

6-
declare -a examples=("api" "sidecar" "updater" "resources", "tauri-dynamic-lib")
6+
declare -a examples=("api" "sidecar" "updater" "resources" "tauri-dynamic-lib")
77
declare -a tooling=("bench" "cli" "webdriver")
88

99
for example in "${examples[@]}"

core/tauri-runtime-wry/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ exclude = [ ".license_template", "CHANGELOG.md", "/target" ]
1313
readme = "README.md"
1414

1515
[dependencies]
16-
wry = { version = "0.16.2", default-features = false, features = [ "file-drop", "protocol" ] }
16+
wry = { version = "0.17.0", default-features = false, features = [ "file-drop", "protocol" ] }
1717
tauri-runtime = { version = "0.5.1", path = "../tauri-runtime" }
1818
tauri-utils = { version = "1.0.0-rc.7", path = "../tauri-utils" }
1919
uuid = { version = "1", features = [ "v4" ] }
2020
rand = "0.8"
2121

2222
[target."cfg(windows)".dependencies]
23-
webview2-com = "0.13.0"
23+
webview2-com = "0.16.0"
2424

25-
[target."cfg(windows)".dependencies.windows]
26-
version = "0.30.0"
27-
features = [ "Win32_Foundation" ]
25+
[target."cfg(windows)".dependencies.windows]
26+
version = "0.37.0"
27+
features = [ "Win32_Foundation" ]
2828

2929
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
3030
gtk = { version = "0.15", features = [ "v3_20" ] }

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,7 @@ fn create_webview<T: UserEvent>(
30183018
let proxy_ = proxy.clone();
30193019
let mut token = EventRegistrationToken::default();
30203020
unsafe {
3021-
controller.GotFocus(
3021+
controller.add_GotFocus(
30223022
FocusChangedEventHandler::create(Box::new(move |_, _| {
30233023
let _ = proxy_.send_event(Message::Webview(
30243024
window_id,
@@ -3031,7 +3031,7 @@ fn create_webview<T: UserEvent>(
30313031
}
30323032
.unwrap();
30333033
unsafe {
3034-
controller.LostFocus(
3034+
controller.add_LostFocus(
30353035
FocusChangedEventHandler::create(Box::new(move |_, _| {
30363036
let _ = proxy.send_event(Message::Webview(
30373037
window_id,

core/tauri-runtime/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ http-range = "0.1.4"
3333
infer = "0.7"
3434

3535
[target."cfg(windows)".dependencies]
36-
webview2-com = "0.13.0"
36+
webview2-com = "0.16.0"
3737

3838
[target."cfg(windows)".dependencies.windows]
39-
version = "0.30.0"
39+
version = "0.37.0"
4040
features = [ "Win32_Foundation" ]
4141

4242
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]

core/tauri/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ cocoa = "0.24"
105105
objc = "0.2"
106106

107107
[target."cfg(windows)".dependencies]
108-
webview2-com = "0.13.0"
108+
webview2-com = "0.16.0"
109109

110-
[target."cfg(windows)".dependencies.windows]
111-
version = "0.30.0"
112-
features = [ "Win32_Foundation" ]
110+
[target."cfg(windows)".dependencies.windows]
111+
version = "0.37.0"
112+
features = [ "Win32_Foundation" ]
113113

114114
[build-dependencies]
115115
heck = "0.4"

0 commit comments

Comments
 (0)