Cargo.toml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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.5"
  50. # dependencies that are shared across packages
  51. [workspace.dependencies]
  52. dioxus = { path = "packages/dioxus", version = "0.5.0" }
  53. dioxus-lib = { path = "packages/dioxus-lib", version = "0.5.0" }
  54. dioxus-core = { path = "packages/core", version = "0.5.5" }
  55. dioxus-core-macro = { path = "packages/core-macro", version = "0.5.0" }
  56. dioxus-config-macro = { path = "packages/config-macro", version = "0.5.0" }
  57. dioxus-router = { path = "packages/router", version = "0.5.0" }
  58. dioxus-router-macro = { path = "packages/router-macro", version = "0.5.0" }
  59. dioxus-html = { path = "packages/html", version = "0.5.0" }
  60. dioxus-html-internal-macro = { path = "packages/html-internal-macro", version = "0.5.0" }
  61. dioxus-hooks = { path = "packages/hooks", version = "0.5.0" }
  62. dioxus-web = { path = "packages/web", version = "0.5.0" }
  63. dioxus-ssr = { path = "packages/ssr", version = "0.5.0", default-features = false }
  64. dioxus-desktop = { path = "packages/desktop", version = "0.5.0", default-features = false }
  65. dioxus-mobile = { path = "packages/mobile", version = "0.5.0" }
  66. dioxus-interpreter-js = { path = "packages/interpreter", version = "0.5.0" }
  67. dioxus-liveview = { path = "packages/liveview", version = "0.5.0" }
  68. dioxus-autofmt = { path = "packages/autofmt", version = "0.5.0" }
  69. dioxus-check = { path = "packages/check", version = "0.5.0" }
  70. dioxus-rsx = { path = "packages/rsx", version = "0.5.0" }
  71. rsx-rosetta = { path = "packages/rsx-rosetta", version = "0.5.0" }
  72. dioxus-signals = { path = "packages/signals", version = "0.5.0" }
  73. dioxus-cli-config = { path = "packages/cli-config", version = "0.5.0", default-features = false}
  74. generational-box = { path = "packages/generational-box", version = "0.5.0" }
  75. dioxus-hot-reload = { path = "packages/hot-reload", version = "0.5.0" }
  76. dioxus-fullstack = { path = "packages/fullstack", version = "0.5.0" }
  77. dioxus_server_macro = { path = "packages/server-macro", version = "0.5.0", default-features = false }
  78. dioxus-ext = { path = "packages/extension" }
  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. slotmap = { version = "1.0.7", features = ["serde"] }
  85. futures-channel = "0.3.21"
  86. futures-util = { version = "0.3", default-features = false }
  87. rustc-hash = "1.1.0"
  88. wasm-bindgen = "0.2.92"
  89. wasm-bindgen-futures = "0.4.42"
  90. html_parser = "0.7.0"
  91. thiserror = "1.0.40"
  92. prettyplease = { version = "0.2.16", features = ["verbatim"] }
  93. manganis-cli-support = { version = "0.2.1", features = ["html"] }
  94. manganis = { version = "0.2.1" }
  95. interprocess = { version = "1.2.2", package = "interprocess-docfix" }
  96. lru = "0.12.2"
  97. async-trait = "0.1.77"
  98. axum = "0.7.0"
  99. axum-server = { version = "0.6.0", default-features = false }
  100. tower = "0.4.13"
  101. http = "1.0.0"
  102. tower-http = "0.5.1"
  103. hyper = "1.0.0"
  104. hyper-rustls = "0.26.0"
  105. serde_json = "1.0.61"
  106. serde = "1.0.61"
  107. syn = "2.0"
  108. quote = "1.0"
  109. proc-macro2 = "1.0"
  110. axum_session = "0.12.1"
  111. axum_session_auth = "0.12.1"
  112. axum-extra = "0.9.2"
  113. reqwest = "0.11.24"
  114. owo-colors = "4.0.0"
  115. [workspace.dev-dependencies]
  116. isnta = "1.36.1"
  117. # speed up some macros by optimizing them
  118. [profile.dev.package.insta]
  119. opt-level = 3
  120. [profile.dev.package.similar]
  121. opt-level = 3
  122. [profile.dev.package.dioxus-core-macro]
  123. opt-level = 3
  124. # Enable a small amount of optimization in debug mode
  125. [profile.cli-dev]
  126. inherits = "dev"
  127. opt-level = 1
  128. # Enable high optimizations for dependencies (incl. Bevy), but not for our code:
  129. [profile.cli-dev.package."*"]
  130. opt-level = 3
  131. # This is a "virtual package"
  132. # It is not meant to be published, but is used so "cargo run --example XYZ" works properly
  133. [package]
  134. name = "dioxus-examples"
  135. version = "0.5.5"
  136. authors = ["Jonathan Kelley"]
  137. edition = "2021"
  138. description = "Top level crate for the Dioxus repository"
  139. license = "MIT OR Apache-2.0"
  140. repository = "https://github.com/DioxusLabs/dioxus/"
  141. homepage = "https://dioxuslabs.com"
  142. documentation = "https://dioxuslabs.com"
  143. keywords = ["dom", "ui", "gui", "react", "wasm"]
  144. rust-version = "1.60.0"
  145. publish = false
  146. [dependencies]
  147. manganis = { workspace = true, optional = true }
  148. reqwest = { version = "0.11.9", features = ["json"], optional = true }
  149. http-range = { version = "0.1.5", optional = true }
  150. ciborium = { version = "0.2.1", optional = true }
  151. base64 = { version = "0.21.0", optional = true }
  152. [dev-dependencies]
  153. dioxus = { workspace = true, features = ["router"] }
  154. dioxus-ssr = { workspace = true }
  155. futures-util = "0.3.21"
  156. separator = "0.4.1"
  157. serde = { version = "1.0.136", features = ["derive"] }
  158. serde_json = "1.0.79"
  159. rand = { version = "0.8.4", features = ["small_rng"] }
  160. form_urlencoded = "1.2.0"
  161. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  162. getrandom = { version = "0.2.12", features = ["js"] }
  163. tokio = { version = "1.16.1", default-features = false, features = [
  164. "sync",
  165. "macros",
  166. "io-util",
  167. "rt",
  168. "time"
  169. ] }
  170. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  171. tokio = { version = "1.16.1", features = ["full"] }
  172. # To make most examples faster to compile, we split out assets and http-related stuff
  173. # This trims off like 270 dependencies, leading to a significant speedup in compilation time
  174. [features]
  175. default = ["dioxus/desktop"]
  176. liveview = ["dioxus/liveview"]
  177. fullstack = ["dioxus/fullstack"]
  178. axum = ["dioxus/axum"]
  179. server = ["dioxus/axum"]
  180. web = ["dioxus/web"]
  181. collect-assets = ["manganis"]
  182. http = ["reqwest", "http-range"]
  183. [[example]]
  184. name = "login_form"
  185. required-features = ["http"]
  186. [[example]]
  187. name = "dog_app"
  188. required-features = ["http"]
  189. [[example]]
  190. name = "video_stream"
  191. required-features = ["http"]
  192. [[example]]
  193. name = "suspense"
  194. required-features = ["http"]
  195. [[example]]
  196. name = "weather_app"
  197. required-features = ["http"]
  198. [[example]]
  199. name = "image_generator_openai"
  200. required-features = ["http"]
  201. [[example]]
  202. name = "hash_fragment_state"
  203. required-features = ["ciborium", "base64"]