Cargo.toml 13 KB

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