Cargo.toml 14 KB

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