Cargo.toml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. [workspace]
  2. resolver = "2"
  3. members = [
  4. "packages/dioxus",
  5. "packages/dioxus-lib",
  6. "packages/core",
  7. "packages/core-types",
  8. "packages/cli",
  9. "packages/core-types",
  10. "packages/core-macro",
  11. "packages/config-macro",
  12. "packages/router-macro",
  13. "packages/extension",
  14. "packages/router",
  15. "packages/html",
  16. "packages/html-internal-macro",
  17. "packages/hooks",
  18. "packages/web",
  19. "packages/ssr",
  20. "packages/desktop",
  21. "packages/mobile",
  22. "packages/interpreter",
  23. "packages/liveview",
  24. "packages/autofmt",
  25. "packages/check",
  26. "packages/cli-config",
  27. "packages/cli",
  28. "packages/config-macro",
  29. "packages/core-macro",
  30. "packages/core-types",
  31. "packages/core",
  32. "packages/desktop",
  33. "packages/devtools-types",
  34. "packages/devtools",
  35. "packages/dioxus-lib",
  36. "packages/dioxus",
  37. "packages/document",
  38. "packages/extension",
  39. "packages/fullstack",
  40. "packages/generational-box",
  41. "packages/history",
  42. "packages/hooks",
  43. "packages/html-internal-macro",
  44. "packages/html",
  45. "packages/interpreter",
  46. "packages/lazy-js-bundle",
  47. "packages/liveview",
  48. "packages/mobile",
  49. "packages/router-macro",
  50. "packages/router",
  51. "packages/rsx-hotreload",
  52. "packages/rsx-rosetta",
  53. "packages/rsx",
  54. "packages/server-macro",
  55. "packages/signals",
  56. "packages/ssr",
  57. "packages/lazy-js-bundle",
  58. "packages/cli-config",
  59. "packages/devtools",
  60. "packages/devtools-types",
  61. "packages/isrg",
  62. "packages/rsx-hotreload",
  63. "packages/const-serialize",
  64. "packages/const-serialize-macro",
  65. "packages/dx-wire-format",
  66. # Playwright tests
  67. "packages/playwright-tests/liveview",
  68. "packages/playwright-tests/web",
  69. "packages/playwright-tests/fullstack",
  70. "packages/playwright-tests/suspense-carousel",
  71. "packages/playwright-tests/nested-suspense",
  72. # manganis
  73. "packages/manganis/manganis",
  74. "packages/manganis/manganis-core",
  75. "packages/manganis/manganis-macro",
  76. # Full project examples
  77. "example-projects/fullstack-hackernews",
  78. "example-projects/ecommerce-site",
  79. "example-projects/wifi-scanner",
  80. "example-projects/file-explorer",
  81. # Simple examples that require a crate
  82. "examples/tailwind",
  83. "examples/pwa",
  84. "examples/fullstack-hello-world",
  85. "examples/fullstack-router",
  86. "examples/fullstack-streaming",
  87. "examples/fullstack-desktop",
  88. "examples/fullstack-auth",
  89. # Playwright tests
  90. "packages/playwright-tests/liveview",
  91. "packages/playwright-tests/web",
  92. "packages/playwright-tests/fullstack",
  93. "packages/playwright-tests/suspense-carousel",
  94. "packages/playwright-tests/nested-suspense",
  95. ]
  96. [workspace.package]
  97. version = "0.6.0-alpha.5"
  98. # dependencies that are shared across packages
  99. [workspace.dependencies]
  100. dioxus = { path = "packages/dioxus", version = "0.6.0-alpha.5" }
  101. dioxus-lib = { path = "packages/dioxus-lib", version = "0.6.0-alpha.5" }
  102. dioxus-core = { path = "packages/core", version = "0.6.0-alpha.5" }
  103. dioxus-core-types = { path = "packages/core-types", version = "0.6.0-alpha.5" }
  104. dioxus-core-macro = { path = "packages/core-macro", version = "0.6.0-alpha.5" }
  105. dioxus-config-macro = { path = "packages/config-macro", version = "0.6.0-alpha.5" }
  106. dioxus-router = { path = "packages/router", version = "0.6.0-alpha.5" }
  107. dioxus-router-macro = { path = "packages/router-macro", version = "0.6.0-alpha.5" }
  108. dioxus-document = { path = "packages/document", version = "0.6.0-alpha.5", default-features = false }
  109. dioxus-history = { path = "packages/history", version = "0.6.0-alpha.5", default-features = false }
  110. dioxus-html = { path = "packages/html", version = "0.6.0-alpha.5", default-features = false }
  111. dioxus-html-internal-macro = { path = "packages/html-internal-macro", version = "0.6.0-alpha.5" }
  112. dioxus-hooks = { path = "packages/hooks", version = "0.6.0-alpha.5" }
  113. dioxus-web = { path = "packages/web", version = "0.6.0-alpha.5", default-features = false }
  114. dioxus-isrg = { path = "packages/isrg", version = "0.6.0-alpha.5" }
  115. dioxus-ssr = { path = "packages/ssr", version = "0.6.0-alpha.5", default-features = false }
  116. dioxus-desktop = { path = "packages/desktop", version = "0.6.0-alpha.5", default-features = false }
  117. dioxus-mobile = { path = "packages/mobile", version = "0.6.0-alpha.5" }
  118. dioxus-interpreter-js = { path = "packages/interpreter", version = "0.6.0-alpha.5" }
  119. dioxus-liveview = { path = "packages/liveview", version = "0.6.0-alpha.5" }
  120. dioxus-autofmt = { path = "packages/autofmt", version = "0.6.0-alpha.5" }
  121. dioxus-check = { path = "packages/check", version = "0.6.0-alpha.5" }
  122. dioxus-rsx = { path = "packages/rsx", version = "0.6.0-alpha.5" }
  123. dioxus-rsx-hotreload = { path = "packages/rsx-hotreload", version = "0.6.0-alpha.5" }
  124. dioxus-rsx-rosetta = { path = "packages/rsx-rosetta", version = "0.6.0-alpha.5" }
  125. dioxus-signals = { path = "packages/signals", version = "0.6.0-alpha.5" }
  126. dioxus-cli-config = { path = "packages/cli-config", version = "0.6.0-alpha.5" }
  127. generational-box = { path = "packages/generational-box", version = "0.6.0-alpha.5" }
  128. dioxus-devtools = { path = "packages/devtools", version = "0.6.0-alpha.5" }
  129. dioxus-devtools-types = { path = "packages/devtools-types", version = "0.6.0-alpha.5" }
  130. dioxus-fullstack = { path = "packages/fullstack", version = "0.6.0-alpha.5" }
  131. dioxus_server_macro = { path = "packages/server-macro", version = "0.6.0-alpha.5", default-features = false }
  132. const-serialize = { path = "packages/const-serialize", version = "0.6.0-alpha.5" }
  133. const-serialize-macro = { path = "packages/const-serialize-macro", version = "0.6.0-alpha.5" }
  134. dioxus-dx-wire-format = { path = "packages/dx-wire-format", version = "0.6.0-alpha.5" }
  135. lazy-js-bundle = { path = "packages/lazy-js-bundle", version = "0.6.0-alpha.5" }
  136. manganis = { path = "packages/manganis/manganis", version = "0.6.0-alpha.5" }
  137. manganis-core = { path = "packages/manganis/manganis-core", version = "0.6.0-alpha.5" }
  138. manganis-macro = { path = "packages/manganis/manganis-macro", version = "0.6.0-alpha.5" }
  139. warnings = { version = "0.2.1" }
  140. # a fork of pretty please for tests - let's get off of this if we can!
  141. prettier-please = { version = "0.3.0", features = ["verbatim"]}
  142. clap = { version = "4.5.7" }
  143. askama_escape = "0.10.3"
  144. tracing = "0.1.37"
  145. tracing-futures = "0.2.5"
  146. toml = "0.8"
  147. tokio = "1.40"
  148. slab = "0.4.2"
  149. slotmap = { version = "1.0.7", features = ["serde"] }
  150. futures-channel = "0.3.21"
  151. futures-util = { version = "0.3", default-features = false }
  152. rustc-hash = "1.1.0"
  153. wasm-bindgen = "0.2.95"
  154. wasm-bindgen-cli-support = "0.2.95"
  155. wasm-bindgen-shared = "0.2.95"
  156. wasm-bindgen-futures = "0.4.42"
  157. html_parser = "0.7.0"
  158. thiserror = "1.0.40"
  159. prettyplease = { version = "0.2.20", features = ["verbatim"] }
  160. const_format = "0.2.32"
  161. cargo_toml = { version = "0.20.3" }
  162. tauri-utils = { version = "=2.0.2" }
  163. tauri-bundler = { version = "=2.0.4" }
  164. lru = "0.12.2"
  165. async-trait = "0.1.77"
  166. axum = "0.7.0"
  167. axum-server = { version = "0.7.1", default-features = false }
  168. tower = "0.4.13"
  169. http = "1.0.0"
  170. notify = { version = "6.1.1" }
  171. tower-http = "0.5.2"
  172. hyper = "1.0.0"
  173. hyper-rustls = { version= "0.27.2", default-features = false , features=["native-tokio","http1","http2","tls12","logging","ring"]}
  174. rustls = { version="0.23.12", default-features=false, features =["logging","std","tls12","ring"] }
  175. serde_json = "1.0.61"
  176. serde = "1.0.61"
  177. syn = "2.0"
  178. quote = "1.0"
  179. proc-macro2 = "1.0"
  180. axum_session = "0.12.1"
  181. axum_session_auth = "0.12.1"
  182. axum-extra = "0.9.2"
  183. reqwest = "0.12.5"
  184. owo-colors = "4.0.0"
  185. ciborium = "0.2.1"
  186. base64 = "0.22.1"
  187. once_cell = "1.17.1"
  188. uuid = "1.9.1"
  189. convert_case = "0.6.0"
  190. tokio-tungstenite = { version = "0.23.1" }
  191. gloo-timers = "0.3.0"
  192. fluent-uri = { version = "0.2.0", features = ["serde"] }
  193. internment = { version = "0.7.0" }
  194. proc-macro2-diagnostics = { version = "0.10", default-features = false }
  195. env_logger = "0.11.0"
  196. tracing-subscriber = "0.3.17"
  197. chrono = { version = "0.4.34" }
  198. gloo = { version = "0.8.0" }
  199. gloo-utils = { version = "0.1.6" }
  200. rustversion = "1.0.17"
  201. rand = "0.8.5"
  202. longest-increasing-subsequence = "0.1.0"
  203. trybuild = "1.0"
  204. js-sys = "0.3.56"
  205. web-sys = { version = "0.3.56", default-features = false }
  206. dirs = "5.0.1"
  207. cargo-config2 = "0.1.26"
  208. criterion = { version = "0.5" }
  209. walrus = "0.22.0"
  210. cargo_metadata = "0.18.1"
  211. # desktop
  212. wry = { version = "0.45.0", default-features = false }
  213. tao = { version = "=0.30.0", features = ["rwh_05"] }
  214. webbrowser = "1.0.1"
  215. infer = "0.16.0"
  216. dunce = "1.0.2"
  217. urlencoding = "2.1.2"
  218. global-hotkey = "0.6.0"
  219. rfd = { version = "0.14", default-features = false }
  220. muda = "0.14.0"
  221. cocoa = "0.26"
  222. core-foundation = "0.10.0"
  223. objc = { version = "0.2.7", features = ["exception"] }
  224. objc_id = "0.1.1"
  225. tray-icon = "0.19"
  226. # our release profile should be fast to compile and fast to run
  227. # when we ship our CI builds, we turn on LTO which improves perf leftover by turning on incremental
  228. [profile.release]
  229. incremental = true
  230. debug = 0
  231. [profile.release-max-opt]
  232. inherits = "release"
  233. lto = true
  234. codegen-units = 1
  235. # Disable debug assertions to check the released path of core and other packages, but build without optimizations to keep build times quick
  236. [profile.release-unoptimized]
  237. inherits = "dev"
  238. debug-assertions = false
  239. incremental = true
  240. # This is a "virtual package"
  241. # It is not meant to be published, but is used so "cargo run --example XYZ" works properly
  242. [package]
  243. name = "dioxus-examples"
  244. authors = ["Jonathan Kelley"]
  245. edition = "2021"
  246. description = "Top level crate for the Dioxus repository"
  247. license = "MIT OR Apache-2.0"
  248. repository = "https://github.com/DioxusLabs/dioxus/"
  249. homepage = "https://dioxuslabs.com"
  250. documentation = "https://dioxuslabs.com"
  251. keywords = ["dom", "ui", "gui", "react", "wasm"]
  252. rust-version = "1.79.0"
  253. publish = false
  254. version = "0.6.0-alpha.5"
  255. [dependencies]
  256. reqwest = { workspace = true, features = ["json"], optional = true }
  257. ciborium = { workspace = true, optional = true }
  258. base64 = { workspace = true, optional = true }
  259. http-range = { version = "0.1.5", optional = true }
  260. [dev-dependencies]
  261. dioxus = { workspace = true, features = ["router"] }
  262. dioxus-ssr = { workspace = true }
  263. futures-util = "0.3.21"
  264. separator = "0.4.1"
  265. serde = { version = "1.0.136", features = ["derive"] }
  266. serde_json = "1.0.79"
  267. rand = { version = "0.8.4", features = ["small_rng"] }
  268. form_urlencoded = "1.2.0"
  269. async-std = "1.12.0"
  270. web-time = "1.1.0"
  271. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  272. getrandom = { version = "0.2.12", features = ["js"] }
  273. tokio = { version = "1.40", default-features = false, features = [
  274. "sync",
  275. "macros",
  276. "io-util",
  277. "rt",
  278. "time"
  279. ] }
  280. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  281. tokio = { version = "1.40", features = ["full"] }
  282. # force vendored openssl on android
  283. [target.'cfg(target_os = "android")'.dev-dependencies]
  284. openssl = { version = "0.10", features = ["vendored"] }
  285. # To make most examples faster to compile, we split out assets and http-related stuff
  286. # This trims off like 270 dependencies, leading to a significant speedup in compilation time
  287. [features]
  288. default = ["desktop"]
  289. desktop = ["dioxus/desktop"]
  290. liveview = ["dioxus/liveview"]
  291. fullstack = ["dioxus/fullstack"]
  292. server = ["dioxus/server"]
  293. mobile = ["dioxus/mobile"]
  294. web = ["dioxus/web"]
  295. http = ["dep:reqwest", "dep:http-range"]
  296. [[example]]
  297. name = "login_form"
  298. required-features = ["http"]
  299. doc-scrape-examples = true
  300. [[example]]
  301. name = "dog_app"
  302. required-features = ["http"]
  303. doc-scrape-examples = true
  304. [[example]]
  305. name = "video_stream"
  306. required-features = ["http", "desktop"]
  307. doc-scrape-examples = true
  308. [[example]]
  309. name = "suspense"
  310. required-features = ["http", "desktop"]
  311. doc-scrape-examples = true
  312. [[example]]
  313. name = "weather_app"
  314. required-features = ["http"]
  315. doc-scrape-examples = true
  316. [[example]]
  317. name = "image_generator_openai"
  318. required-features = ["http"]
  319. doc-scrape-examples = true
  320. [[example]]
  321. name = "hash_fragment_state"
  322. required-features = ["ciborium", "base64"]
  323. doc-scrape-examples = true
  324. [[example]]
  325. name = "backgrounded_futures"
  326. required-features = ["desktop"]
  327. doc-scrape-examples = true
  328. [[example]]
  329. name = "calculator_mutable"
  330. required-features = ["desktop"]
  331. doc-scrape-examples = true
  332. [[example]]
  333. name = "calculator"
  334. required-features = ["desktop"]
  335. doc-scrape-examples = true
  336. [[example]]
  337. name = "clock"
  338. doc-scrape-examples = true
  339. [[example]]
  340. name = "crm"
  341. required-features = ["desktop"]
  342. doc-scrape-examples = true
  343. [[example]]
  344. name = "custom_html"
  345. required-features = ["desktop"]
  346. doc-scrape-examples = true
  347. [[example]]
  348. name = "custom_menu"
  349. required-features = ["desktop"]
  350. doc-scrape-examples = true
  351. [[example]]
  352. name = "dynamic_asset"
  353. required-features = ["desktop"]
  354. doc-scrape-examples = true
  355. [[example]]
  356. name = "errors"
  357. required-features = ["desktop"]
  358. doc-scrape-examples = true
  359. [[example]]
  360. name = "future"
  361. doc-scrape-examples = true
  362. [[example]]
  363. name = "hydration"
  364. required-features = ["desktop"]
  365. doc-scrape-examples = true
  366. [[example]]
  367. name = "multiwindow"
  368. required-features = ["desktop"]
  369. doc-scrape-examples = true
  370. [[example]]
  371. name = "overlay"
  372. required-features = ["desktop"]
  373. doc-scrape-examples = true
  374. [[example]]
  375. name = "popup"
  376. required-features = ["desktop"]
  377. doc-scrape-examples = true
  378. [[example]]
  379. name = "read_size"
  380. required-features = ["desktop"]
  381. doc-scrape-examples = true
  382. [[example]]
  383. name = "shortcut"
  384. required-features = ["desktop"]
  385. doc-scrape-examples = true
  386. [[example]]
  387. name = "streams"
  388. doc-scrape-examples = true
  389. [[example]]
  390. name = "window_event"
  391. required-features = ["desktop"]
  392. doc-scrape-examples = true
  393. [[example]]
  394. name = "window_focus"
  395. required-features = ["desktop"]
  396. doc-scrape-examples = true
  397. [[example]]
  398. name = "window_zoom"
  399. required-features = ["desktop"]
  400. doc-scrape-examples = true
  401. [[example]]
  402. name = "control_focus"
  403. doc-scrape-examples = true
  404. [[example]]
  405. name = "eval"
  406. doc-scrape-examples = true