Cargo.toml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. [package]
  2. authors = [ "Tauri Programme within The Commons Conservancy" ]
  3. categories = [ "gui", "web-programming" ]
  4. description = "Make tiny, secure apps for all desktop platforms with Tauri"
  5. edition = "2021"
  6. rust-version = "1.64"
  7. exclude = [ "/test", "/.scripts", "CHANGELOG.md", "/target" ]
  8. homepage = "https://tauri.app"
  9. license = "Apache-2.0 OR MIT"
  10. name = "tauri"
  11. readme = "README.md"
  12. repository = "https://github.com/tauri-apps/tauri"
  13. version = "2.0.0-alpha.8"
  14. links = "Tauri"
  15. [package.metadata.docs.rs]
  16. no-default-features = true
  17. features = [
  18. "wry",
  19. "custom-protocol",
  20. "api-all",
  21. "updater",
  22. "fs-extract-api",
  23. "system-tray",
  24. "devtools",
  25. "icon-png",
  26. "dox"
  27. ]
  28. rustdoc-args = [ "--cfg", "doc_cfg" ]
  29. default-target = "x86_64-unknown-linux-gnu"
  30. targets = [
  31. "x86_64-pc-windows-msvc",
  32. "x86_64-unknown-linux-gnu",
  33. "x86_64-apple-darwin"
  34. ]
  35. [dependencies]
  36. serde_json = { workspace = true, features = [ "raw_value" ] }
  37. serde.workspace = true
  38. tokio = { version = "1", features = [ "rt", "rt-multi-thread", "sync", "fs", "io-util" ] }
  39. futures-util = "0.3"
  40. uuid = { version = "1", features = [ "v4" ] }
  41. url.workspace = true
  42. anyhow.workspace = true
  43. thiserror.workspace = true
  44. once_cell = "1"
  45. tauri-runtime = { version = "0.13.0-alpha.4", path = "../tauri-runtime" }
  46. tauri-macros = { version = "2.0.0-alpha.4", path = "../tauri-macros" }
  47. tauri-utils = { version = "2.0.0-alpha.4", features = [ "resources" ], path = "../tauri-utils" }
  48. tauri-runtime-wry = { version = "0.13.0-alpha.4", path = "../tauri-runtime-wry", optional = true }
  49. rand = "0.8"
  50. semver = { version = "1.0", features = [ "serde" ] }
  51. serde_repr = "0.1"
  52. state = "0.5"
  53. tar = "0.4.38"
  54. tempfile.workspace = true
  55. zip = { version = "0.6", default-features = false, optional = true }
  56. ignore = "0.4"
  57. flate2 = "1.0"
  58. http = "0.2"
  59. dirs-next = "2.0"
  60. percent-encoding = "2.2"
  61. base64 = { version = "0.21", optional = true }
  62. reqwest = { version = "0.11", default-features = false, features = [ "json", "stream" ] }
  63. bytes = { version = "1", features = [ "serde" ] }
  64. raw-window-handle = "0.5"
  65. minisign-verify = { version = "0.2", optional = true }
  66. time = { version = "0.3", features = [ "parsing", "formatting" ], optional = true }
  67. os_info = { version = "3", optional = true }
  68. glob.workspace = true
  69. data-url = { version = "0.2", optional = true }
  70. serialize-to-javascript = "=0.1.1"
  71. infer = { version = "0.9", optional = true }
  72. png = { version = "0.17", optional = true }
  73. ico = { version = "0.2.0", optional = true }
  74. encoding_rs = "0.8.31"
  75. [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
  76. gtk = { version = "0.16", features = [ "v3_24" ] }
  77. glib = "0.16"
  78. webkit2gtk = { version = "0.19.1", features = [ "v2_38" ] }
  79. [target."cfg(target_os = \"macos\")".dependencies]
  80. embed_plist = "1.2"
  81. cocoa = "0.24"
  82. objc = "0.2"
  83. [target."cfg(windows)".dependencies]
  84. webview2-com = "0.22"
  85. [target."cfg(windows)".dependencies.windows]
  86. version = "0.44"
  87. features = [ "Win32_Foundation" ]
  88. [target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
  89. log = "0.4"
  90. heck = "0.4"
  91. [target."cfg(target_os = \"android\")".dependencies]
  92. jni = "0.20"
  93. [target."cfg(target_os = \"ios\")".dependencies]
  94. libc = "0.2"
  95. objc = "0.2"
  96. cocoa = "0.24"
  97. swift-rs = "1.0.4"
  98. [build-dependencies]
  99. heck = "0.4"
  100. once_cell = "1"
  101. tauri-build = { path = "../tauri-build/", version = "2.0.0-alpha.1" }
  102. [dev-dependencies]
  103. mockito = "0.31"
  104. proptest = "1.0.0"
  105. quickcheck = "1.0.3"
  106. quickcheck_macros = "1.0.0"
  107. serde.workspace = true
  108. serde_json.workspace = true
  109. tauri = { path = ".", default-features = false, features = [ "wry" ] }
  110. tokio-test = "0.4.2"
  111. tokio = { version = "1", features = [ "full" ] }
  112. cargo_toml = "0.11"
  113. [features]
  114. default = [ "wry", "compression", "objc-exception" ]
  115. compression = [ "tauri-macros/compression", "tauri-utils/compression" ]
  116. wry = [ "tauri-runtime-wry" ]
  117. objc-exception = [ "tauri-runtime-wry/objc-exception" ]
  118. linux-protocol-headers = [ "tauri-runtime-wry/linux-headers", "webkit2gtk/v2_36" ]
  119. isolation = [ "tauri-utils/isolation", "tauri-macros/isolation" ]
  120. custom-protocol = [ "tauri-macros/custom-protocol" ]
  121. updater = [
  122. "minisign-verify",
  123. "time",
  124. "base64",
  125. "dialog-ask",
  126. "fs-extract-api"
  127. ]
  128. fs-extract-api = [ "zip" ]
  129. native-tls = [ "reqwest/native-tls" ]
  130. native-tls-vendored = [ "reqwest/native-tls-vendored" ]
  131. rustls-tls = [ "reqwest/rustls-tls" ]
  132. system-tray = [ "tauri-runtime/system-tray", "tauri-runtime-wry/system-tray" ]
  133. devtools = [ "tauri-runtime/devtools", "tauri-runtime-wry/devtools" ]
  134. dox = [ "tauri-runtime-wry/dox" ]
  135. macos-private-api = [
  136. "tauri-runtime/macos-private-api",
  137. "tauri-runtime-wry/macos-private-api"
  138. ]
  139. window-data-url = [ "data-url" ]
  140. api-all = [
  141. "clipboard-all",
  142. "dialog-all",
  143. "fs-all",
  144. "global-shortcut-all",
  145. "http-all",
  146. "notification-all",
  147. "os-all",
  148. "path-all",
  149. "process-all",
  150. "protocol-all",
  151. "shell-all",
  152. "window-all",
  153. "app-all"
  154. ]
  155. clipboard-all = [ "clipboard-write-text", "clipboard-read-text" ]
  156. clipboard-read-text = [ ]
  157. clipboard-write-text = [ ]
  158. dialog-all = [ "dialog-open", "dialog-save", "dialog-message", "dialog-ask" ]
  159. dialog-ask = [ ]
  160. dialog-confirm = [ ]
  161. dialog-message = [ ]
  162. dialog-open = [ ]
  163. dialog-save = [ ]
  164. fs-all = [
  165. "fs-copy-file",
  166. "fs-create-dir",
  167. "fs-exists",
  168. "fs-read-file",
  169. "fs-read-dir",
  170. "fs-remove-dir",
  171. "fs-remove-file",
  172. "fs-rename-file",
  173. "fs-write-file"
  174. ]
  175. fs-copy-file = [ ]
  176. fs-create-dir = [ ]
  177. fs-exists = [ ]
  178. fs-read-file = [ ]
  179. fs-read-dir = [ ]
  180. fs-remove-dir = [ ]
  181. fs-remove-file = [ ]
  182. fs-rename-file = [ ]
  183. fs-write-file = [ ]
  184. global-shortcut-all = [ ]
  185. http-all = [ "http-request" ]
  186. http-request = [ ]
  187. notification-all = [ ]
  188. os-all = [ "os_info" ]
  189. path-all = [ ]
  190. process-all = [ "process-relaunch", "process-exit" ]
  191. process-exit = [ ]
  192. process-relaunch = [ ]
  193. process-relaunch-dangerous-allow-symlink-macos = [ "tauri-utils/process-relaunch-dangerous-allow-symlink-macos" ]
  194. protocol-all = [ "protocol-asset" ]
  195. protocol-asset = [ ]
  196. shell-all = [ "shell-execute", "shell-sidecar", "shell-open" ]
  197. shell-execute = [ ]
  198. shell-sidecar = [ ]
  199. shell-open = [ ]
  200. window-all = [
  201. "window-create",
  202. "window-center",
  203. "window-request-user-attention",
  204. "window-set-resizable",
  205. "window-set-title",
  206. "window-maximize",
  207. "window-unmaximize",
  208. "window-minimize",
  209. "window-unminimize",
  210. "window-show",
  211. "window-hide",
  212. "window-close",
  213. "window-set-decorations",
  214. "window-set-shadow",
  215. "window-set-always-on-top",
  216. "window-set-content-protected",
  217. "window-set-size",
  218. "window-set-min-size",
  219. "window-set-max-size",
  220. "window-set-position",
  221. "window-set-fullscreen",
  222. "window-set-focus",
  223. "window-set-icon",
  224. "window-set-skip-taskbar",
  225. "window-set-cursor-grab",
  226. "window-set-cursor-visible",
  227. "window-set-cursor-icon",
  228. "window-set-cursor-position",
  229. "window-set-ignore-cursor-events",
  230. "window-start-dragging",
  231. "window-print"
  232. ]
  233. window-create = [ ]
  234. window-center = [ ]
  235. window-request-user-attention = [ ]
  236. window-set-resizable = [ ]
  237. window-set-title = [ ]
  238. window-maximize = [ ]
  239. window-unmaximize = [ ]
  240. window-minimize = [ ]
  241. window-unminimize = [ ]
  242. window-show = [ ]
  243. window-hide = [ ]
  244. window-close = [ ]
  245. window-set-decorations = [ ]
  246. window-set-shadow = [ ]
  247. window-set-always-on-top = [ ]
  248. window-set-content-protected = [ ]
  249. window-set-size = [ ]
  250. window-set-min-size = [ ]
  251. window-set-max-size = [ ]
  252. window-set-position = [ ]
  253. window-set-fullscreen = [ ]
  254. window-set-focus = [ ]
  255. window-set-icon = [ ]
  256. window-set-skip-taskbar = [ ]
  257. window-set-cursor-grab = [ ]
  258. window-set-cursor-visible = [ ]
  259. window-set-cursor-icon = [ ]
  260. window-set-cursor-position = [ ]
  261. window-set-ignore-cursor-events = [ ]
  262. window-start-dragging = [ ]
  263. window-print = [ ]
  264. app-all = [ "app-show", "app-hide" ]
  265. app-show = [ ]
  266. app-hide = [ ]
  267. config-json5 = [ "tauri-macros/config-json5" ]
  268. config-toml = [ "tauri-macros/config-toml" ]
  269. icon-ico = [ "infer", "ico" ]
  270. icon-png = [ "infer", "png" ]
  271. [[example]]
  272. name = "commands"
  273. path = "../../examples/commands/main.rs"
  274. [[example]]
  275. name = "helloworld"
  276. path = "../../examples/helloworld/main.rs"
  277. [[example]]
  278. name = "multiwindow"
  279. path = "../../examples/multiwindow/main.rs"
  280. required-features = [ "window-create" ]
  281. [[example]]
  282. name = "parent-window"
  283. path = "../../examples/parent-window/main.rs"
  284. [[example]]
  285. name = "navigation"
  286. path = "../../examples/navigation/main.rs"
  287. required-features = [ "window-create" ]
  288. [[example]]
  289. name = "splashscreen"
  290. path = "../../examples/splashscreen/main.rs"
  291. [[example]]
  292. name = "state"
  293. path = "../../examples/state/main.rs"
  294. [[example]]
  295. name = "streaming"
  296. path = "../../examples/streaming/main.rs"
  297. [[example]]
  298. name = "isolation"
  299. path = "../../examples/isolation/main.rs"
  300. required-features = [ "isolation" ]