Cargo.toml 12 KB

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