Cargo.toml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. [workspace]
  2. resolver = "2"
  3. members = [
  4. "packages/dioxus",
  5. "packages/dioxus-lib",
  6. "packages/core",
  7. "packages/cli",
  8. "packages/cli-config",
  9. "packages/core-macro",
  10. "packages/config-macro",
  11. "packages/router-macro",
  12. "packages/extension",
  13. "packages/router",
  14. "packages/html",
  15. "packages/html-internal-macro",
  16. "packages/hooks",
  17. "packages/web",
  18. "packages/ssr",
  19. "packages/desktop",
  20. "packages/mobile",
  21. "packages/interpreter",
  22. "packages/liveview",
  23. "packages/autofmt",
  24. "packages/check",
  25. "packages/rsx",
  26. "packages/rsx-rosetta",
  27. "packages/generational-box",
  28. "packages/signals",
  29. "packages/hot-reload",
  30. "packages/fullstack",
  31. "packages/server-macro",
  32. "packages/fullstack/examples/axum-hello-world",
  33. "packages/fullstack/examples/axum-router",
  34. "packages/fullstack/examples/axum-streaming",
  35. "packages/fullstack/examples/axum-desktop",
  36. "packages/fullstack/examples/axum-auth",
  37. "packages/fullstack/examples/static-hydrated",
  38. # Full project examples
  39. "examples/tailwind",
  40. "examples/PWA-example",
  41. # "examples/openid_connect_demo",
  42. # Playwright tests
  43. "packages/playwright-tests/liveview",
  44. "packages/playwright-tests/web",
  45. "packages/playwright-tests/fullstack",
  46. ]
  47. exclude = ["examples/mobile_demo", "examples/openid_connect_demo"]
  48. [workspace.package]
  49. version = "0.5.0-alpha.2"
  50. # dependencies that are shared across packages
  51. [workspace.dependencies]
  52. dioxus = { path = "packages/dioxus", version = "0.5.0-alpha.2" }
  53. dioxus-lib = { path = "packages/dioxus-lib", version = "0.5.0-alpha.2" }
  54. dioxus-core = { path = "packages/core", version = "0.5.0-alpha.2" }
  55. dioxus-core-macro = { path = "packages/core-macro", version = "0.5.0-alpha.2" }
  56. dioxus-config-macro = { path = "packages/config-macro", version = "0.5.0-alpha.2" }
  57. dioxus-router = { path = "packages/router", version = "0.5.0-alpha.2" }
  58. dioxus-router-macro = { path = "packages/router-macro", version = "0.5.0-alpha.2" }
  59. dioxus-html = { path = "packages/html", version = "0.5.0-alpha.2" }
  60. dioxus-html-internal-macro = { path = "packages/html-internal-macro", version = "0.5.0-alpha.2" }
  61. dioxus-hooks = { path = "packages/hooks", version = "0.5.0-alpha.2" }
  62. dioxus-web = { path = "packages/web", version = "0.5.0-alpha.2" }
  63. dioxus-ssr = { path = "packages/ssr", version = "0.5.0-alpha.2", default-features = false }
  64. dioxus-desktop = { path = "packages/desktop", version = "0.5.0-alpha.2", default-features = false }
  65. dioxus-mobile = { path = "packages/mobile", version = "0.5.0-alpha.2" }
  66. dioxus-interpreter-js = { path = "packages/interpreter", version = "0.5.0-alpha.2" }
  67. dioxus-liveview = { path = "packages/liveview", version = "0.5.0-alpha.2" }
  68. dioxus-autofmt = { path = "packages/autofmt", version = "0.5.0-alpha.2" }
  69. dioxus-check = { path = "packages/check", version = "0.5.0-alpha.2" }
  70. dioxus-rsx = { path = "packages/rsx", version = "0.5.0-alpha.2" }
  71. rsx-rosetta = { path = "packages/rsx-rosetta", version = "0.5.0-alpha.2" }
  72. dioxus-signals = { path = "packages/signals", version = "0.5.0-alpha.2" }
  73. dioxus-cli-config = { path = "packages/cli-config", version = "0.5.0-alpha.2" }
  74. generational-box = { path = "packages/generational-box", version = "0.5.0-alpha.2" }
  75. dioxus-hot-reload = { path = "packages/hot-reload", version = "0.5.0-alpha.2" }
  76. dioxus-fullstack = { path = "packages/fullstack", version = "0.5.0-alpha.2" }
  77. dioxus_server_macro = { path = "packages/server-macro", version = "0.5.0-alpha.2", default-features = false }
  78. dioxus-ext = { path = "packages/extension", version = "0.4.0" }
  79. tracing = "0.1.37"
  80. tracing-futures = "0.2.5"
  81. toml = "0.8"
  82. tokio = "1.28"
  83. slab = "0.4.2"
  84. futures-channel = "0.3.21"
  85. futures-util = { version = "0.3", default-features = false }
  86. rustc-hash = "1.1.0"
  87. wasm-bindgen = "0.2.92"
  88. html_parser = "0.7.0"
  89. thiserror = "1.0.40"
  90. prettyplease = { version = "0.2.16", features = ["verbatim"] }
  91. manganis-cli-support = { version = "0.2.1", features = ["html"] }
  92. manganis = { version = "0.2.1" }
  93. interprocess = { version = "1.2.1" }
  94. lru = "0.12.2"
  95. async-trait = "0.1.77"
  96. axum = "0.7.0"
  97. axum-server = { version = "0.6.0", default-features = false }
  98. tower = "0.4.13"
  99. http = "1.0.0"
  100. tower-http = "0.5.1"
  101. hyper = "1.0.0"
  102. hyper-rustls = "0.26.0"
  103. serde_json = "1.0.61"
  104. serde = "1.0.61"
  105. syn = "2.0"
  106. quote = "1.0"
  107. proc-macro2 = "1.0"
  108. axum_session = "0.12.1"
  109. axum_session_auth = "0.12.1"
  110. axum-extra = "0.9.2"
  111. reqwest = "0.11.24"
  112. owo-colors = "4.0.0"
  113. [workspace.dev-dependencies]
  114. isnta = "1.36.1"
  115. # speed up some macros by optimizing them
  116. [profile.dev.package.insta]
  117. opt-level = 3
  118. [profile.dev.package.similar]
  119. opt-level = 3
  120. [profile.dev.package.dioxus-core-macro]
  121. opt-level = 3
  122. # Enable a small amount of optimization in debug mode
  123. [profile.cli-dev]
  124. inherits = "dev"
  125. opt-level = 1
  126. # Enable high optimizations for dependencies (incl. Bevy), but not for our code:
  127. [profile.cli-dev.package."*"]
  128. opt-level = 3
  129. # This is a "virtual package"
  130. # It is not meant to be published, but is used so "cargo run --example XYZ" works properly
  131. [package]
  132. name = "dioxus-examples"
  133. version = "0.5.0-alpha.1"
  134. authors = ["Jonathan Kelley"]
  135. edition = "2021"
  136. description = "Top level crate for the Dioxus repository"
  137. license = "MIT OR Apache-2.0"
  138. repository = "https://github.com/DioxusLabs/dioxus/"
  139. homepage = "https://dioxuslabs.com"
  140. documentation = "https://dioxuslabs.com"
  141. keywords = ["dom", "ui", "gui", "react", "wasm"]
  142. rust-version = "1.60.0"
  143. publish = false
  144. [dependencies]
  145. manganis = { workspace = true, optional = true }
  146. reqwest = { version = "0.11.9", features = ["json"], optional = true }
  147. http-range = { version = "0.1.5", optional = true }
  148. [dev-dependencies]
  149. dioxus = { workspace = true, features = ["router"] }
  150. dioxus-ssr = { workspace = true }
  151. futures-util = "0.3.21"
  152. separator = "0.4.1"
  153. serde = { version = "1.0.136", features = ["derive"] }
  154. serde_json = "1.0.79"
  155. rand = { version = "0.8.4", features = ["small_rng"] }
  156. form_urlencoded = "1.2.0"
  157. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  158. getrandom = { version = "0.2.12", features = ["js"] }
  159. tokio = { version = "1.16.1", default-features = false, features = [
  160. "sync",
  161. "macros",
  162. "io-util",
  163. "rt",
  164. "time",
  165. ] }
  166. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  167. tokio = { version = "1.16.1", features = ["full"] }
  168. # To make most examples faster to compile, we split out assets and http-related stuff
  169. # This trims off like 270 dependencies, leading to a significant speedup in compilation time
  170. [features]
  171. liveview = ["dioxus/liveview"]
  172. fullstack = ["dioxus/fullstack"]
  173. axum = ["dioxus/axum"]
  174. server = ["dioxus/axum"]
  175. default = ["dioxus/desktop"]
  176. web = ["dioxus/web"]
  177. collect-assets = ["manganis"]
  178. http = ["reqwest", "http-range"]
  179. [[example]]
  180. name = "login_form"
  181. required-features = ["http"]
  182. [[example]]
  183. name = "dog_app"
  184. required-features = ["http"]
  185. [[example]]
  186. name = "video_stream"
  187. required-features = ["http"]
  188. [[example]]
  189. name = "suspense"
  190. required-features = ["http"]
  191. [[example]]
  192. name = "weather_app"
  193. required-features = ["http"]
  194. [[example]]
  195. name = "image_generator_openai"
  196. required-features = ["http"]