Cargo.toml 6.2 KB

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