Cargo.toml 12 KB

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