Cargo.toml 13 KB

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