Cargo.toml 12 KB

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