@@ -68,11 +68,6 @@ serde_repr = "0.1"
6868http = " 1"
6969dirs = " 6"
7070percent-encoding = " 2"
71- reqwest = { version = " 0.12" , default-features = false , features = [
72- " json" ,
73- " stream" ,
74- ] }
75- bytes = { version = " 1" , features = [" serde" ] }
7671raw-window-handle = { version = " 0.6" , features = [" std" ] }
7772glob = " 0.3"
7873urlpattern = " 0.3"
@@ -89,13 +84,16 @@ specta = { version = "^2.0.0-rc.16", optional = true, default-features = false,
8984 " function" ,
9085 " derive" ,
9186] }
92- [target ."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\", target_os = \"windows\", target_os = \"macos\"))" .dependencies ]
87+
88+ # desktop
89+ [target .'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "windows", target_os = "macos"))' .dependencies ]
9390muda = { version = " 0.15" , default-features = false , features = [" serde" ] }
9491tray-icon = { version = " 0.19" , default-features = false , features = [
9592 " serde" ,
9693], optional = true }
9794
98- [target ."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))" .dependencies ]
95+ # linux
96+ [target .'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))' .dependencies ]
9997gtk = { version = " 0.18" , features = [" v3_24" ] }
10098webkit2gtk = { version = " =2.0.1" , features = [" v2_40" ] }
10199
@@ -120,15 +118,23 @@ objc2-app-kit = { version = "0.2", default-features = false, features = [
120118] }
121119window-vibrancy = " 0.5"
122120
121+ # windows
123122[target ."cfg(windows)" .dependencies ]
124123webview2-com = " 0.34"
125124window-vibrancy = " 0.5"
125+ windows = { version = " 0.58" , features = [" Win32_Foundation" ] }
126126
127- [target ."cfg(windows)" .dependencies .windows ]
128- version = " 0.58"
129- features = [" Win32_Foundation" ]
127+ # mobile
128+ [target .'cfg(any(target_os = "android", all(target_vendor = "apple", not(target_os = "macos"))))' .dependencies ]
129+ bytes = { version = " 1" , features = [" serde" ] }
130+ reqwest = { version = " 0.12" , default-features = false , features = [
131+ " json" ,
132+ " stream" ,
133+ " rustls-tls" ,
134+ ] }
130135
131- [target ."cfg(target_os = \"android\")" .dependencies ]
136+ # android
137+ [target .'cfg(target_os = "android")' .dependencies ]
132138jni = " 0.21"
133139
134140# UIKit, i.e. iOS/tvOS/watchOS/visionOS
@@ -179,9 +185,11 @@ objc-exception = ["tauri-runtime-wry/objc-exception"]
179185linux-libxdo = [" tray-icon/libxdo" , " muda/libxdo" ]
180186isolation = [" tauri-utils/isolation" , " tauri-macros/isolation" , " uuid" ]
181187custom-protocol = [" tauri-macros/custom-protocol" ]
188+ # TODO: Remove these flags in v3 and/or enable them by default behind a mobile flag https://github.com/tauri-apps/tauri/issues/12384
189+ # For now those feature flags keep enabling reqwest features in case some users depend on that by accident.
182190native-tls = [" reqwest/native-tls" ]
183191native-tls-vendored = [" reqwest/native-tls-vendored" ]
184- rustls-tls = [" reqwest/rustls-tls " ]
192+ rustls-tls = []
185193devtools = [" tauri-runtime/devtools" , " tauri-runtime-wry/devtools" ]
186194process-relaunch-dangerous-allow-symlink-macos = [
187195 " tauri-utils/process-relaunch-dangerous-allow-symlink-macos" ,
0 commit comments