Cargo.toml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. [package]
  2. name = "tauri"
  3. version = "2.0.0-beta.22"
  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 = [ "rt", "rt-multi-thread", "sync", "fs", "io-util" ] }
  46. futures-util = "0.3"
  47. uuid = { version = "1", features = [ "v4" ], optional = true }
  48. url = "2"
  49. anyhow = "1.0"
  50. thiserror = "1.0"
  51. tauri-runtime = { version = "2.0.0-beta.18", path = "../tauri-runtime" }
  52. tauri-macros = { version = "2.0.0-beta.17", path = "../tauri-macros" }
  53. tauri-utils = { version = "2.0.0-beta.17", features = [ "resources" ], path = "../tauri-utils" }
  54. tauri-runtime-wry = { version = "2.0.0-beta.18", path = "../tauri-runtime-wry", optional = true }
  55. getrandom = "0.2"
  56. serde_repr = "0.1"
  57. state = "0.6"
  58. http = "1.1"
  59. dirs = "5"
  60. percent-encoding = "2.3"
  61. reqwest = { version = "0.12", default-features = false, features = [ "json", "stream" ] }
  62. bytes = { version = "1", features = [ "serde" ] }
  63. raw-window-handle = { version = "0.6", features = [ "std" ]}
  64. glob = "0.3"
  65. urlpattern = "0.2"
  66. mime = "0.3"
  67. data-url = { version = "0.3", optional = true }
  68. serialize-to-javascript = "=0.1.1"
  69. image = { version = "0.24", default-features = false, optional = true }
  70. http-range = { version = "0.1.5", optional = true }
  71. tracing = { version = "0.1", optional = true }
  72. heck = "0.5"
  73. log = "0.4"
  74. dunce = "1"
  75. specta = { version = "^2.0.0-rc.9", optional = true, default-features = false, features = [ "function" ] }
  76. [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]
  77. muda = { version = "0.13.4", default-features = false, features = [ "serde" ] }
  78. tray-icon = { version = "0.14", default-features = false, features = [ "serde" ], optional = true }
  79. [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
  80. gtk = { version = "0.18", features = [ "v3_24" ] }
  81. webkit2gtk = { version = "=2.0.1", features = [ "v2_38" ] }
  82. [target."cfg(target_os = \"macos\")".dependencies]
  83. embed_plist = "1.2"
  84. cocoa = "0.25"
  85. objc = "0.2"
  86. window-vibrancy = "0.5"
  87. [target."cfg(windows)".dependencies]
  88. webview2-com = "0.30"
  89. window-vibrancy = "0.5"
  90. [target."cfg(windows)".dependencies.windows]
  91. version = "0.56"
  92. features = [ "Win32_Foundation" ]
  93. [target."cfg(target_os = \"android\")".dependencies]
  94. jni = "0.21"
  95. [target."cfg(target_os = \"ios\")".dependencies]
  96. libc = "0.2"
  97. objc = "0.2"
  98. cocoa = "0.25"
  99. swift-rs = "1.0.6"
  100. [build-dependencies]
  101. heck = "0.5"
  102. tauri-build = { path = "../tauri-build/", default-features = false, version = "2.0.0-beta.17" }
  103. tauri-utils = { path = "../tauri-utils/", version = "2.0.0-beta.17", features = [ "build" ] }
  104. [dev-dependencies]
  105. proptest = "1.4.0"
  106. quickcheck = "1.0.3"
  107. quickcheck_macros = "1.0.0"
  108. serde = { version = "1.0", features = [ "derive" ] }
  109. serde_json = "1.0"
  110. tauri = { path = ".", default-features = false, features = [ "wry" ] }
  111. tokio = { version = "1", features = [ "full" ] }
  112. cargo_toml = "0.17"
  113. http-range = "0.1.5"
  114. [features]
  115. default = [ "wry", "compression", "objc-exception", "common-controls-v6" ]
  116. unstable = [ "tauri-runtime-wry/unstable" ]
  117. common-controls-v6 = [ "tray-icon?/common-controls-v6", "muda/common-controls-v6" ]
  118. tray-icon = [ "dep:tray-icon" ]
  119. tracing = [
  120. "dep:tracing",
  121. "tauri-macros/tracing",
  122. "tauri-runtime-wry/tracing"
  123. ]
  124. test = [ ]
  125. compression = [ "tauri-macros/compression", "tauri-utils/compression" ]
  126. wry = [ "tauri-runtime-wry" ]
  127. objc-exception = [ "tauri-runtime-wry/objc-exception" ]
  128. linux-ipc-protocol = [ "tauri-runtime-wry/linux-protocol-body", "webkit2gtk/v2_40" ]
  129. linux-libxdo = [ "tray-icon/libxdo", "muda/libxdo" ]
  130. isolation = [ "tauri-utils/isolation", "tauri-macros/isolation", "uuid" ]
  131. custom-protocol = [ "tauri-macros/custom-protocol" ]
  132. native-tls = [ "reqwest/native-tls" ]
  133. native-tls-vendored = [ "reqwest/native-tls-vendored" ]
  134. rustls-tls = [ "reqwest/rustls-tls" ]
  135. devtools = [ "tauri-runtime/devtools", "tauri-runtime-wry/devtools" ]
  136. process-relaunch-dangerous-allow-symlink-macos = [ "tauri-utils/process-relaunch-dangerous-allow-symlink-macos" ]
  137. macos-private-api = [
  138. "tauri-runtime/macos-private-api",
  139. "tauri-runtime-wry/macos-private-api"
  140. ]
  141. webview-data-url = [ "data-url" ]
  142. protocol-asset = [ "http-range" ]
  143. config-json5 = [ "tauri-macros/config-json5" ]
  144. config-toml = [ "tauri-macros/config-toml" ]
  145. image-ico = [ "image/ico" ]
  146. image-png = [ "image/png" ]
  147. macos-proxy = [ "tauri-runtime-wry/macos-proxy" ]
  148. specta = [ "dep:specta" ]
  149. [[example]]
  150. name = "commands"
  151. path = "../../examples/commands/main.rs"
  152. [[example]]
  153. name = "helloworld"
  154. path = "../../examples/helloworld/main.rs"
  155. [[example]]
  156. name = "multiwebview"
  157. path = "../../examples/multiwebview/main.rs"
  158. required-features = [ "unstable" ]
  159. [[example]]
  160. name = "multiwindow"
  161. path = "../../examples/multiwindow/main.rs"
  162. [[example]]
  163. name = "parent-window"
  164. path = "../../examples/parent-window/main.rs"
  165. [[example]]
  166. name = "navigation"
  167. path = "../../examples/navigation/main.rs"
  168. [[example]]
  169. name = "splashscreen"
  170. path = "../../examples/splashscreen/main.rs"
  171. [[example]]
  172. name = "state"
  173. path = "../../examples/state/main.rs"
  174. [[example]]
  175. name = "streaming"
  176. path = "../../examples/streaming/main.rs"
  177. [[example]]
  178. name = "isolation"
  179. path = "../../examples/isolation/main.rs"
  180. required-features = [ "isolation" ]
  181. [[example]]
  182. name = "run-iteration"
  183. path = "../../examples/run-iteration/main.rs"