Cargo.toml 13 KB

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