Cargo.toml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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. # This is a "virtual package"
  233. # It is not meant to be published, but is used so "cargo run --example XYZ" works properly
  234. [package]
  235. name = "dioxus-examples"
  236. authors = ["Jonathan Kelley"]
  237. edition = "2021"
  238. description = "Top level crate for the Dioxus repository"
  239. license = "MIT OR Apache-2.0"
  240. repository = "https://github.com/DioxusLabs/dioxus/"
  241. homepage = "https://dioxuslabs.com"
  242. documentation = "https://dioxuslabs.com"
  243. keywords = ["dom", "ui", "gui", "react", "wasm"]
  244. rust-version = "1.79.0"
  245. publish = false
  246. version = "0.6.0-alpha.3"
  247. [dependencies]
  248. reqwest = { workspace = true, features = ["json"], optional = true }
  249. ciborium = { workspace = true, optional = true }
  250. base64 = { workspace = true, optional = true }
  251. http-range = { version = "0.1.5", optional = true }
  252. [dev-dependencies]
  253. dioxus = { workspace = true, features = ["router"] }
  254. dioxus-ssr = { workspace = true }
  255. futures-util = "0.3.21"
  256. separator = "0.4.1"
  257. serde = { version = "1.0.136", features = ["derive"] }
  258. serde_json = "1.0.79"
  259. rand = { version = "0.8.4", features = ["small_rng"] }
  260. form_urlencoded = "1.2.0"
  261. async-std = "1.12.0"
  262. web-time = "1.1.0"
  263. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  264. getrandom = { version = "0.2.12", features = ["js"] }
  265. tokio = { version = "1.40", default-features = false, features = [
  266. "sync",
  267. "macros",
  268. "io-util",
  269. "rt",
  270. "time"
  271. ] }
  272. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  273. tokio = { version = "1.40", features = ["full"] }
  274. # To make most examples faster to compile, we split out assets and http-related stuff
  275. # This trims off like 270 dependencies, leading to a significant speedup in compilation time
  276. [features]
  277. default = ["desktop"]
  278. desktop = ["dioxus/desktop"]
  279. liveview = ["dioxus/liveview"]
  280. fullstack = ["dioxus/fullstack"]
  281. axum = ["dioxus/axum"]
  282. server = ["dioxus/axum"]
  283. web = ["dioxus/web"]
  284. http = ["dep:reqwest", "dep:http-range"]
  285. [[example]]
  286. name = "login_form"
  287. required-features = ["http"]
  288. doc-scrape-examples = true
  289. [[example]]
  290. name = "dog_app"
  291. required-features = ["http"]
  292. doc-scrape-examples = true
  293. [[example]]
  294. name = "video_stream"
  295. required-features = ["http", "desktop"]
  296. doc-scrape-examples = true
  297. [[example]]
  298. name = "suspense"
  299. required-features = ["http", "desktop"]
  300. doc-scrape-examples = true
  301. [[example]]
  302. name = "weather_app"
  303. required-features = ["http"]
  304. doc-scrape-examples = true
  305. [[example]]
  306. name = "image_generator_openai"
  307. required-features = ["http"]
  308. doc-scrape-examples = true
  309. [[example]]
  310. name = "hash_fragment_state"
  311. required-features = ["ciborium", "base64"]
  312. doc-scrape-examples = true
  313. [[example]]
  314. name = "backgrounded_futures"
  315. required-features = ["desktop"]
  316. doc-scrape-examples = true
  317. [[example]]
  318. name = "calculator_mutable"
  319. required-features = ["desktop"]
  320. doc-scrape-examples = true
  321. [[example]]
  322. name = "calculator"
  323. required-features = ["desktop"]
  324. doc-scrape-examples = true
  325. [[example]]
  326. name = "clock"
  327. doc-scrape-examples = true
  328. [[example]]
  329. name = "crm"
  330. required-features = ["desktop"]
  331. doc-scrape-examples = true
  332. [[example]]
  333. name = "custom_html"
  334. required-features = ["desktop"]
  335. doc-scrape-examples = true
  336. [[example]]
  337. name = "custom_menu"
  338. required-features = ["desktop"]
  339. doc-scrape-examples = true
  340. [[example]]
  341. name = "dynamic_asset"
  342. required-features = ["desktop"]
  343. doc-scrape-examples = true
  344. [[example]]
  345. name = "errors"
  346. required-features = ["desktop"]
  347. doc-scrape-examples = true
  348. [[example]]
  349. name = "future"
  350. doc-scrape-examples = true
  351. [[example]]
  352. name = "hydration"
  353. required-features = ["desktop"]
  354. doc-scrape-examples = true
  355. [[example]]
  356. name = "multiwindow"
  357. required-features = ["desktop"]
  358. doc-scrape-examples = true
  359. [[example]]
  360. name = "overlay"
  361. required-features = ["desktop"]
  362. doc-scrape-examples = true
  363. [[example]]
  364. name = "popup"
  365. required-features = ["desktop"]
  366. doc-scrape-examples = true
  367. [[example]]
  368. name = "read_size"
  369. required-features = ["desktop"]
  370. doc-scrape-examples = true
  371. [[example]]
  372. name = "shortcut"
  373. required-features = ["desktop"]
  374. doc-scrape-examples = true
  375. [[example]]
  376. name = "streams"
  377. doc-scrape-examples = true
  378. [[example]]
  379. name = "window_event"
  380. required-features = ["desktop"]
  381. doc-scrape-examples = true
  382. [[example]]
  383. name = "window_focus"
  384. required-features = ["desktop"]
  385. doc-scrape-examples = true
  386. [[example]]
  387. name = "window_zoom"
  388. required-features = ["desktop"]
  389. doc-scrape-examples = true
  390. [[example]]
  391. name = "control_focus"
  392. doc-scrape-examples = true
  393. [[example]]
  394. name = "eval"
  395. doc-scrape-examples = true