Cargo.toml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. [package]
  2. name = "tauri"
  3. version = "2.0.0-rc.15"
  4. description = "Make tiny, secure apps for all desktop platforms with Tauri"
  5. exclude = ["/test", "/.scripts", "CHANGELOG.md", "/target"]
  6. readme = "README.md"
  7. links = "Tauri"
  8. authors.workspace = true
  9. homepage.workspace = true
  10. repository.workspace = true
  11. categories.workspace = true
  12. license.workspace = true
  13. edition.workspace = true
  14. rust-version.workspace = true
  15. [package.metadata.docs.rs]
  16. no-default-features = true
  17. features = [
  18. "wry",
  19. "unstable",
  20. "custom-protocol",
  21. "tray-icon",
  22. "devtools",
  23. "image-png",
  24. "protocol-asset",
  25. "test",
  26. "specta",
  27. ]
  28. rustc-args = ["--cfg", "docsrs"]
  29. rustdoc-args = ["--cfg", "docsrs"]
  30. default-target = "x86_64-unknown-linux-gnu"
  31. targets = [
  32. "x86_64-pc-windows-msvc",
  33. "x86_64-unknown-linux-gnu",
  34. "x86_64-apple-darwin",
  35. "x86_64-linux-android",
  36. "x86_64-apple-ios",
  37. ]
  38. [package.metadata.cargo-udeps.ignore]
  39. normal = ["reqwest"]
  40. build = ["tauri-build"]
  41. development = ["quickcheck_macros"]
  42. [dependencies]
  43. serde_json = { version = "1.0", features = ["raw_value"] }
  44. serde = { version = "1.0", features = ["derive", "rc"] }
  45. tokio = { version = "1", features = [
  46. "rt",
  47. "rt-multi-thread",
  48. "sync",
  49. "fs",
  50. "io-util",
  51. ] }
  52. futures-util = "0.3"
  53. uuid = { version = "1", features = ["v4"], optional = true }
  54. url = "2"
  55. anyhow = "1.0"
  56. thiserror = "1.0"
  57. tauri-runtime = { version = "2.0.0-rc.12", path = "../tauri-runtime" }
  58. tauri-macros = { version = "2.0.0-rc.11", path = "../tauri-macros" }
  59. tauri-utils = { version = "2.0.0-rc.12", features = [
  60. "resources",
  61. ], path = "../tauri-utils" }
  62. tauri-runtime-wry = { version = "2.0.0-rc.13", path = "../tauri-runtime-wry", optional = true }
  63. getrandom = "0.2"
  64. serde_repr = "0.1"
  65. state = "0.6"
  66. http = "1.1"
  67. dirs = "5"
  68. percent-encoding = "2.3"
  69. reqwest = { version = "0.12", default-features = false, features = [
  70. "json",
  71. "stream",
  72. ] }
  73. bytes = { version = "1", features = ["serde"] }
  74. raw-window-handle = { version = "0.6", features = ["std"] }
  75. glob = "0.3"
  76. urlpattern = "0.3"
  77. mime = "0.3"
  78. data-url = { version = "0.3", optional = true }
  79. serialize-to-javascript = "=0.1.1"
  80. image = { version = "0.25", default-features = false, optional = true }
  81. http-range = { version = "0.1.5", optional = true }
  82. tracing = { version = "0.1", optional = true }
  83. heck = "0.5"
  84. log = "0.4"
  85. dunce = "1"
  86. specta = { version = "^2.0.0-rc.16", optional = true, default-features = false, features = [
  87. "function",
  88. "derive",
  89. ] }
  90. [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]
  91. muda = { version = "0.14", default-features = false, features = ["serde"] }
  92. tray-icon = { version = "0.17", default-features = false, features = [
  93. "serde",
  94. ], optional = true }
  95. [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
  96. gtk = { version = "0.18", features = ["v3_24"] }
  97. webkit2gtk = { version = "=2.0.1", features = ["v2_40"] }
  98. # macOS
  99. [target.'cfg(target_os = "macos")'.dependencies]
  100. embed_plist = "1.2"
  101. plist = "1"
  102. objc2 = "0.5.2"
  103. objc2-foundation = { version = "0.2.2", features = ["NSData", "NSThread"] }
  104. objc2-app-kit = { version = "0.2.2", features = [
  105. "NSApplication",
  106. "NSColor",
  107. "NSResponder",
  108. "NSView",
  109. "NSWindow",
  110. "NSImage",
  111. ] }
  112. window-vibrancy = "0.5"
  113. [target."cfg(windows)".dependencies]
  114. webview2-com = "0.33"
  115. window-vibrancy = "0.5"
  116. [target."cfg(windows)".dependencies.windows]
  117. version = "0.58"
  118. features = ["Win32_Foundation"]
  119. [target."cfg(target_os = \"android\")".dependencies]
  120. jni = "0.21"
  121. # UIKit, i.e. iOS/tvOS/watchOS/visionOS
  122. [target.'cfg(all(target_vendor = "apple", not(target_os = "macos")))'.dependencies]
  123. libc = "0.2"
  124. swift-rs = "1.0.7"
  125. [build-dependencies]
  126. heck = "0.5"
  127. tauri-build = { path = "../tauri-build/", default-features = false, version = "2.0.0-rc.12" }
  128. tauri-utils = { path = "../tauri-utils/", version = "2.0.0-rc.12", features = [
  129. "build",
  130. ] }
  131. [dev-dependencies]
  132. proptest = "1.4.0"
  133. quickcheck = "1.0.3"
  134. quickcheck_macros = "1.0.0"
  135. serde = { version = "1.0", features = ["derive"] }
  136. serde_json = "1.0"
  137. tauri = { path = ".", default-features = false, features = ["wry"] }
  138. tokio = { version = "1", features = ["full"] }
  139. cargo_toml = "0.17"
  140. http-range = "0.1.5"
  141. # macOS
  142. [target.'cfg(target_os = "macos")'.dev-dependencies]
  143. objc2-web-kit = { version = "0.2.2", features = [
  144. "objc2-app-kit",
  145. "WKWebView",
  146. "WKUserContentController",
  147. ] }
  148. [features]
  149. default = ["wry", "compression", "objc-exception", "common-controls-v6"]
  150. unstable = ["tauri-runtime-wry/unstable"]
  151. common-controls-v6 = [
  152. "tray-icon?/common-controls-v6",
  153. "muda/common-controls-v6",
  154. ]
  155. tray-icon = ["dep:tray-icon"]
  156. tracing = ["dep:tracing", "tauri-macros/tracing", "tauri-runtime-wry/tracing"]
  157. test = []
  158. compression = ["tauri-macros/compression", "tauri-utils/compression"]
  159. wry = ["tauri-runtime-wry"]
  160. objc-exception = ["tauri-runtime-wry/objc-exception"]
  161. linux-libxdo = ["tray-icon/libxdo", "muda/libxdo"]
  162. isolation = ["tauri-utils/isolation", "tauri-macros/isolation", "uuid"]
  163. custom-protocol = ["tauri-macros/custom-protocol"]
  164. native-tls = ["reqwest/native-tls"]
  165. native-tls-vendored = ["reqwest/native-tls-vendored"]
  166. rustls-tls = ["reqwest/rustls-tls"]
  167. devtools = ["tauri-runtime/devtools", "tauri-runtime-wry/devtools"]
  168. process-relaunch-dangerous-allow-symlink-macos = [
  169. "tauri-utils/process-relaunch-dangerous-allow-symlink-macos",
  170. ]
  171. macos-private-api = [
  172. "tauri-runtime/macos-private-api",
  173. "tauri-runtime-wry/macos-private-api",
  174. ]
  175. webview-data-url = ["data-url"]
  176. protocol-asset = ["http-range"]
  177. config-json5 = ["tauri-macros/config-json5"]
  178. config-toml = ["tauri-macros/config-toml"]
  179. image-ico = ["image/ico"]
  180. image-png = ["image/png"]
  181. macos-proxy = ["tauri-runtime-wry/macos-proxy"]
  182. specta = ["dep:specta"]
  183. [[example]]
  184. name = "commands"
  185. path = "../../examples/commands/main.rs"
  186. [[example]]
  187. name = "helloworld"
  188. path = "../../examples/helloworld/main.rs"
  189. [[example]]
  190. name = "multiwebview"
  191. path = "../../examples/multiwebview/main.rs"
  192. required-features = ["unstable"]
  193. [[example]]
  194. name = "multiwindow"
  195. path = "../../examples/multiwindow/main.rs"
  196. [[example]]
  197. name = "run-iteration"
  198. path = "../../examples/run-iteration/main.rs"
  199. [[example]]
  200. name = "splashscreen"
  201. path = "../../examples/splashscreen/main.rs"
  202. [[example]]
  203. name = "state"
  204. path = "../../examples/state/main.rs"
  205. [[example]]
  206. name = "streaming"
  207. path = "../../examples/streaming/main.rs"
  208. [[example]]
  209. name = "isolation"
  210. path = "../../examples/isolation/main.rs"
  211. required-features = ["isolation"]