@@ -95,7 +95,7 @@ tray-icon = { version = "0.20", default-features = false, features = [
95
95
# linux
96
96
[target .'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))' .dependencies ]
97
97
gtk = { version = " 0.18" , features = [" v3_24" ] }
98
- webkit2gtk = { version = " =2.0.1" , features = [" v2_40" ] }
98
+ webkit2gtk = { version = " =2.0.1" , features = [" v2_40" ], optional = true }
99
99
100
100
# macOS
101
101
[target .'cfg(target_os = "macos")' .dependencies ]
@@ -120,9 +120,13 @@ window-vibrancy = "0.6"
120
120
121
121
# windows
122
122
[target ."cfg(windows)" .dependencies ]
123
- webview2-com = " 0.36"
123
+ webview2-com = { version = " 0.36" , optional = true }
124
124
window-vibrancy = " 0.6"
125
- windows = { version = " 0.60" , features = [" Win32_Foundation" ] }
125
+ windows = { version = " 0.60" , features = [
126
+ " Win32_Foundation" ,
127
+ " Win32_UI" ,
128
+ " Win32_UI_WindowsAndMessaging" ,
129
+ ] }
126
130
127
131
# mobile
128
132
[target .'cfg(any(target_os = "android", all(target_vendor = "apple", not(target_os = "macos"))))' .dependencies ]
@@ -180,7 +184,7 @@ tray-icon = ["dep:tray-icon"]
180
184
tracing = [" dep:tracing" , " tauri-macros/tracing" , " tauri-runtime-wry/tracing" ]
181
185
test = []
182
186
compression = [" tauri-macros/compression" , " tauri-utils/compression" ]
183
- wry = [" tauri-runtime-wry" ]
187
+ wry = [" webview2-com " , " webkit2gtk " , " tauri-runtime-wry" ]
184
188
# TODO: Remove in v3 - wry does not have this feature anymore
185
189
objc-exception = []
186
190
linux-libxdo = [" tray-icon/libxdo" , " muda/libxdo" ]
0 commit comments