Cargo.toml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  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-opt",
  10. "packages/core-types",
  11. "packages/core-macro",
  12. "packages/config-macro",
  13. "packages/router-macro",
  14. "packages/extension",
  15. "packages/router",
  16. "packages/html",
  17. "packages/html-internal-macro",
  18. "packages/hooks",
  19. "packages/web",
  20. "packages/ssr",
  21. "packages/desktop",
  22. "packages/mobile",
  23. "packages/interpreter",
  24. "packages/liveview",
  25. "packages/autofmt",
  26. "packages/check",
  27. "packages/cli-config",
  28. "packages/cli",
  29. "packages/config-macro",
  30. "packages/core-macro",
  31. "packages/core-types",
  32. "packages/core",
  33. "packages/desktop",
  34. "packages/devtools-types",
  35. "packages/devtools",
  36. "packages/dioxus-lib",
  37. "packages/dioxus",
  38. "packages/document",
  39. "packages/extension",
  40. "packages/fullstack",
  41. "packages/fullstack-hooks",
  42. "packages/fullstack-protocol",
  43. "packages/generational-box",
  44. "packages/history",
  45. "packages/hooks",
  46. "packages/html-internal-macro",
  47. "packages/html",
  48. "packages/interpreter",
  49. "packages/lazy-js-bundle",
  50. "packages/liveview",
  51. "packages/mobile",
  52. "packages/router-macro",
  53. "packages/router",
  54. "packages/rsx-hotreload",
  55. "packages/rsx-rosetta",
  56. "packages/rsx",
  57. "packages/server-macro",
  58. "packages/signals",
  59. "packages/ssr",
  60. "packages/lazy-js-bundle",
  61. "packages/cli-config",
  62. "packages/devtools",
  63. "packages/devtools-types",
  64. "packages/isrg",
  65. "packages/rsx-hotreload",
  66. "packages/const-serialize",
  67. "packages/const-serialize-macro",
  68. "packages/dx-wire-format",
  69. "packages/logger",
  70. "packages/config-macros",
  71. "packages/native",
  72. "packages/asset-resolver",
  73. "packages/depinfo",
  74. "packages/server",
  75. # Playwright tests
  76. "packages/playwright-tests/liveview",
  77. "packages/playwright-tests/web",
  78. "packages/playwright-tests/fullstack",
  79. "packages/playwright-tests/suspense-carousel",
  80. "packages/playwright-tests/nested-suspense",
  81. # manganis
  82. "packages/manganis/manganis",
  83. "packages/manganis/manganis-core",
  84. "packages/manganis/manganis-macro",
  85. # wasm-split
  86. "packages/wasm-split/wasm-split",
  87. "packages/wasm-split/wasm-split-macro",
  88. "packages/wasm-split/wasm-split-cli",
  89. "packages/wasm-split/wasm-used",
  90. # subsecond
  91. "packages/subsecond/subsecond",
  92. "packages/subsecond/subsecond-types",
  93. # Full project examples
  94. "example-projects/fullstack-hackernews",
  95. "example-projects/ecommerce-site",
  96. "example-projects/wifi-scanner",
  97. "example-projects/file-explorer",
  98. # Simple examples that require a crate
  99. "examples/tailwind",
  100. "examples/pwa",
  101. "examples/fullstack-hello-world",
  102. "examples/fullstack-router",
  103. "examples/fullstack-streaming",
  104. "examples/fullstack-desktop",
  105. "examples/fullstack-auth",
  106. "examples/fullstack-websockets",
  107. # Playwright tests
  108. "packages/playwright-tests/liveview",
  109. "packages/playwright-tests/web",
  110. "packages/playwright-tests/web-routing",
  111. "packages/playwright-tests/barebones-template",
  112. "packages/playwright-tests/fullstack",
  113. "packages/playwright-tests/fullstack-mounted",
  114. "packages/playwright-tests/fullstack-routing",
  115. "packages/playwright-tests/suspense-carousel",
  116. "packages/playwright-tests/nested-suspense",
  117. "packages/playwright-tests/cli-optimization",
  118. "packages/playwright-tests/wasm-split-harness",
  119. "packages/playwright-tests/default-features-disabled",
  120. ]
  121. [workspace.package]
  122. version = "0.6.3"
  123. # dependencies that are shared across packages
  124. [workspace.dependencies]
  125. dioxus = { path = "packages/dioxus", version = "0.6.2" }
  126. dioxus-lib = { path = "packages/dioxus-lib", version = "0.6.2" }
  127. dioxus-core = { path = "packages/core", version = "0.6.2" }
  128. dioxus-core-types = { path = "packages/core-types", version = "0.6.2" }
  129. dioxus-core-macro = { path = "packages/core-macro", version = "0.6.2" }
  130. dioxus-config-macro = { path = "packages/config-macro", version = "0.6.2" }
  131. dioxus-router = { path = "packages/router", version = "0.6.2" }
  132. dioxus-router-macro = { path = "packages/router-macro", version = "0.6.2" }
  133. dioxus-document = { path = "packages/document", version = "0.6.2", default-features = false }
  134. dioxus-history = { path = "packages/history", version = "0.6.2", default-features = false }
  135. dioxus-html = { path = "packages/html", version = "0.6.2", default-features = false }
  136. dioxus-html-internal-macro = { path = "packages/html-internal-macro", version = "0.6.2" }
  137. dioxus-hooks = { path = "packages/hooks", version = "0.6.2" }
  138. dioxus-web = { path = "packages/web", version = "0.6.2", default-features = false }
  139. dioxus-isrg = { path = "packages/isrg", version = "0.6.2" }
  140. dioxus-ssr = { path = "packages/ssr", version = "0.6.2", default-features = false }
  141. dioxus-desktop = { path = "packages/desktop", version = "0.6.2", default-features = false }
  142. dioxus-mobile = { path = "packages/mobile", version = "0.6.2" }
  143. dioxus-interpreter-js = { path = "packages/interpreter", version = "0.6.2" }
  144. dioxus-liveview = { path = "packages/liveview", version = "0.6.2" }
  145. dioxus-autofmt = { path = "packages/autofmt", version = "0.6.2" }
  146. dioxus-check = { path = "packages/check", version = "0.6.2" }
  147. dioxus-rsx = { path = "packages/rsx", version = "0.6.2" }
  148. dioxus-rsx-hotreload = { path = "packages/rsx-hotreload", version = "0.6.2" }
  149. dioxus-rsx-rosetta = { path = "packages/rsx-rosetta", version = "0.6.2" }
  150. dioxus-signals = { path = "packages/signals", version = "0.6.2" }
  151. dioxus-cli-config = { path = "packages/cli-config", version = "0.6.2" }
  152. dioxus-cli-opt = { path = "packages/cli-opt", version = "0.6.2" }
  153. dioxus-devtools = { path = "packages/devtools", version = "0.6.2" }
  154. dioxus-devtools-types = { path = "packages/devtools-types", version = "0.6.2" }
  155. dioxus-server = { path = "packages/server", version = "0.6.2" }
  156. dioxus-fullstack = { path = "packages/fullstack", version = "0.6.2" }
  157. dioxus-fullstack-hooks = { path = "packages/fullstack-hooks", version = "0.6.3" }
  158. dioxus-fullstack-protocol = { path = "packages/fullstack-protocol", version = "0.6.3" }
  159. dioxus_server_macro = { path = "packages/server-macro", version = "0.6.2", default-features = false }
  160. dioxus-dx-wire-format = { path = "packages/dx-wire-format", version = "0.6.2" }
  161. dioxus-logger = { path = "packages/logger", version = "0.6.2" }
  162. dioxus-native = { path = "packages/native", version = "0.6.2" }
  163. dioxus-asset-resolver = { path = "packages/asset-resolver", version = "0.6.2" }
  164. dioxus-config-macros = { path = "packages/config-macros", version = "0.6.3" }
  165. const-serialize = { path = "packages/const-serialize", version = "0.6.2" }
  166. const-serialize-macro = { path = "packages/const-serialize-macro", version = "0.6.2" }
  167. generational-box = { path = "packages/generational-box", version = "0.6.2" }
  168. lazy-js-bundle = { path = "packages/lazy-js-bundle", version = "0.6.2" }
  169. # subsecond
  170. subsecond-types = { path = "packages/subsecond/subsecond-types", version = "0.6.3" }
  171. subsecond = { path = "packages/subsecond/subsecond", version = "0.6.3" }
  172. # manganis
  173. manganis = { path = "packages/manganis/manganis", version = "0.6.2" }
  174. manganis-core = { path = "packages/manganis/manganis-core", version = "0.6.2" }
  175. manganis-macro = { path = "packages/manganis/manganis-macro", version = "0.6.2" }
  176. # wasm-split
  177. wasm-split = { path = "packages/wasm-split/wasm-split", version = "0.1.0" }
  178. wasm-split-macro = { path = "packages/wasm-split/wasm-split-macro", version = "0.1.0" }
  179. wasm-split-cli = { path = "packages/wasm-split/wasm-split-cli", version = "0.1.0" }
  180. wasm-split-harness = { path = "packages/playwright-tests/wasm-split-harness", version = "0.1.0" }
  181. depinfo = { path = "packages/depinfo", version = "0.6.3" }
  182. warnings = { version = "0.2.1" }
  183. # a fork of pretty please for tests - let's get off of this if we can!
  184. prettier-please = { version = "0.3.0", features = ["verbatim"] }
  185. anyhow = "1.0.97"
  186. clap = { version = "4.5.31" }
  187. askama_escape = "0.10.3"
  188. tracing = "0.1.41"
  189. tracing-futures = "0.2.5"
  190. tracing-subscriber = { version = "0.3.19", default-features = false }
  191. toml = "0.8"
  192. tokio = "1.43"
  193. tokio-util = { version = "0.7.13" }
  194. tokio-stream = { version = "0.1.17" }
  195. slab = "0.4.9"
  196. slotmap = { version = "1.0.7", features = ["serde"] }
  197. futures = "0.3.31"
  198. futures-channel = "0.3.31"
  199. futures-util = { version = "0.3", default-features = false }
  200. rustc-hash = "2.1.1"
  201. wasm-bindgen = "0.2.100"
  202. wasm-bindgen-futures = "0.4.50"
  203. js-sys = "0.3.77"
  204. web-sys = { version = "0.3.77", default-features = false }
  205. html_parser = "0.7.0"
  206. thiserror = "2.0.12"
  207. prettyplease = { version = "0.2.30", features = ["verbatim"] }
  208. const_format = "0.2.34"
  209. cargo_toml = { version = "0.21.0" }
  210. tauri-utils = { version = "2.2.0" }
  211. tauri-bundler = { version = "2.2.4" }
  212. lru = "0.13.0"
  213. async-trait = "0.1.87"
  214. axum = { version = "0.8.1", default-features = false }
  215. axum-server = { version = "0.7.1", default-features = false }
  216. server_fn = { version = "0.8.2", default-features = false }
  217. server_fn_macro = { version = "0.8.2" }
  218. tower = "0.5.2"
  219. http = "1.2.0"
  220. notify = { version = "8.0.0" }
  221. tower-http = "0.6.2"
  222. hyper = "1.6.0"
  223. hyper-rustls = { version = "0.27.5", default-features = false, features = [
  224. "native-tokio",
  225. "http1",
  226. "http2",
  227. "tls12",
  228. "logging",
  229. "ring",
  230. ] }
  231. rustls = { version = "0.23.23", default-features = false, features = ["logging", "std", "tls12", "ring"] }
  232. serde_json = "1.0.140"
  233. serde = "1.0.218"
  234. syn = "2.0"
  235. quote = "1.0"
  236. proc-macro2 = "1.0"
  237. axum_session = "0.16.0"
  238. axum_session_auth = "0.16.0"
  239. axum_session_sqlx = "0.5.0"
  240. axum-extra = "0.10.0"
  241. reqwest = "0.12.12"
  242. owo-colors = "4.2.0"
  243. ciborium = "0.2.2"
  244. base64 = "0.22.1"
  245. once_cell = "1.20.3"
  246. uuid = "1.15.1"
  247. convert_case = "0.8.0"
  248. tungstenite = { version = "0.26.2" }
  249. tokio-tungstenite = { version = "0.26.2" }
  250. gloo-timers = "0.3.0"
  251. fluent-uri = { version = "0.3.2", features = ["serde"] }
  252. internment = { version = "0.8.6" }
  253. proc-macro2-diagnostics = { version = "0.10", default-features = false }
  254. env_logger = "0.11.6"
  255. chrono = { version = "0.4.40" }
  256. gloo = { version = "0.11.0" }
  257. gloo-utils = { version = "0.2.0" }
  258. rustversion = "1.0.20"
  259. rand = "0.8"
  260. longest-increasing-subsequence = "0.1.0"
  261. trybuild = "1.0"
  262. dirs = "6.0.0"
  263. cargo-config2 = "0.1.32"
  264. criterion = { version = "0.5" }
  265. cargo_metadata = "0.19.2"
  266. parking_lot = "0.12.3"
  267. tracing-wasm = "0.2.1"
  268. console_error_panic_hook = "0.1.7"
  269. base16 = "0.2.1"
  270. digest = "0.10.7"
  271. sha2 = "0.10.8"
  272. walrus = { version = "0.23.3", features = ["parallel"] }
  273. id-arena = "2.2.1"
  274. async-compression = { version = "0.4.20", features = ["futures-io", "gzip", "brotli"] }
  275. getrandom = { version = "0.2.0" }
  276. async-once-cell = { version = "0.5.4" }
  277. rayon = "1.10.0"
  278. wasmparser = "0.226.0"
  279. itertools = "0.14.0"
  280. object = { version = "0.36.0" }
  281. bincode = "1.3.3"
  282. inventory = { version = "0.3.5" }
  283. macro-string = "0.1.4"
  284. walkdir = "2.5.0"
  285. url = "2.3.1"
  286. separator = "0.4.1"
  287. pretty_assertions = "1.4.0"
  288. serde_repr = "0.1"
  289. hyper-util = "0.1.10"
  290. krates = { version = "0.19.0" }
  291. libloading = "0.8.6"
  292. libc = "0.2.170"
  293. memmap2 = "0.9.5"
  294. memfd = "0.6.4"
  295. # desktop
  296. wry = { version = "0.45.0", default-features = false }
  297. tao = { version = "0.33.0", features = ["rwh_05"] }
  298. webbrowser = "1.0.3"
  299. infer = "0.19.0"
  300. dunce = "1.0.5"
  301. urlencoding = "2.1.3"
  302. global-hotkey = "0.6.4"
  303. rfd = { version = "0.15.2", default-features = false }
  304. muda = "0.16.1"
  305. cocoa = "0.26"
  306. core-foundation = "0.10.0"
  307. objc = { version = "0.2.7", features = ["exception"] }
  308. objc_id = "0.1.1"
  309. tray-icon = "0.20.0"
  310. open = "5.1.2"
  311. # web
  312. gloo-dialogs = "0.2.0"
  313. # tui stuff
  314. ansi-to-tui = "7.0"
  315. ansi-to-html = "0.2.1"
  316. path-absolutize = "3.1"
  317. crossterm = { version = "0.29.0" }
  318. ratatui = { version = "0.29.0" }
  319. shell-words = "1.1.0"
  320. color-eyre = "0.6.3"
  321. # native
  322. keyboard-types = { version = "0.7", default-features = false }
  323. winit = { version = "0.30.2", features = ["rwh_06"] }
  324. [profile.dev]
  325. # our release profile should be fast to compile and fast to run
  326. # when we ship our CI builds, we turn on LTO which improves perf leftover by turning on incremental
  327. [profile.release]
  328. incremental = true
  329. # crank up the opt level for wasm-split-cli in dev mode
  330. # important here that lto is on and the debug symbols are present (since they're used by wasm-opt)a
  331. [profile.wasm-split-release]
  332. inherits = "release"
  333. opt-level = 'z'
  334. lto = true
  335. debug = true
  336. # a profile for running the CLI that's also incremental
  337. [profile.cli-release-dev]
  338. inherits = "release"
  339. opt-level = 3
  340. incremental = true
  341. # crank up walrus since it's quite slow in dev mode
  342. [profile.dev.package.walrus]
  343. opt-level = 3
  344. [profile.release-max-opt]
  345. inherits = "release"
  346. lto = true
  347. codegen-units = 1
  348. # Disable debug assertions to check the released path of core and other packages, but build without optimizations to keep build times quick
  349. [profile.release-unoptimized]
  350. inherits = "dev"
  351. debug-assertions = false
  352. incremental = true
  353. [profile.wasm-dev]
  354. inherits = "dev"
  355. opt-level = 1
  356. [profile.server-dev]
  357. inherits = "dev"
  358. [profile.android-dev]
  359. inherits = "dev"
  360. # This is a "virtual package"
  361. # It is not meant to be published, but is used so "cargo run --example XYZ" works properly
  362. [package]
  363. name = "dioxus-examples"
  364. authors = ["Jonathan Kelley"]
  365. edition = "2021"
  366. description = "Top level crate for the Dioxus repository"
  367. license = "MIT OR Apache-2.0"
  368. repository = "https://github.com/DioxusLabs/dioxus/"
  369. homepage = "https://dioxuslabs.com"
  370. documentation = "https://dioxuslabs.com"
  371. keywords = ["dom", "ui", "gui", "react", "wasm"]
  372. rust-version = "1.80.0"
  373. publish = false
  374. version = "0.6.3"
  375. [dependencies]
  376. reqwest = { workspace = true, features = ["json"], optional = true }
  377. ciborium = { workspace = true, optional = true }
  378. base64 = { workspace = true, optional = true }
  379. http-range = { version = "0.1.5", optional = true }
  380. wgpu = { version = "0.19", optional = true }
  381. ouroboros = { version = "*", optional = true }
  382. wasm-split = { workspace = true }
  383. [dev-dependencies]
  384. dioxus = { workspace = true, features = ["router"] }
  385. dioxus-ssr = { workspace = true }
  386. futures-util = { workspace = true }
  387. separator = { workspace = true }
  388. serde = { workspace = true, features = ["derive"] }
  389. serde_json = { workspace = true }
  390. rand = { workspace = true, features = ["small_rng"] }
  391. form_urlencoded = "1.2.0"
  392. async-std = "1.12.0"
  393. web-time = "1.1.0"
  394. [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
  395. getrandom = { workspace = true, features = ["js"] }
  396. tokio = { version = "1.43", default-features = false, features = ["sync", "macros", "io-util", "rt", "time"] }
  397. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
  398. tokio = { version = "1.43", features = ["full"] }
  399. # force vendored openssl on android
  400. [target.'cfg(target_os = "android")'.dev-dependencies]
  401. openssl = { version = "0.10", features = ["vendored"] }
  402. # To make most examples faster to compile, we split out assets and http-related stuff
  403. # This trims off like 270 dependencies, leading to a significant speedup in compilation time
  404. [features]
  405. default = ["desktop"]
  406. desktop = ["dioxus/desktop"]
  407. native = ["dioxus/native"]
  408. liveview = ["dioxus/liveview"]
  409. fullstack = ["dioxus/fullstack"]
  410. server = ["dioxus/server"]
  411. mobile = ["dioxus/mobile"]
  412. web = ["dioxus/web"]
  413. http = ["dep:reqwest", "dep:http-range"]
  414. gpu = ["dep:ouroboros", "dep:wgpu"]
  415. [[example]]
  416. name = "login_form"
  417. required-features = ["http"]
  418. doc-scrape-examples = true
  419. [[example]]
  420. name = "dog_app"
  421. required-features = ["http"]
  422. doc-scrape-examples = true
  423. [[example]]
  424. name = "video_stream"
  425. required-features = ["http", "desktop"]
  426. doc-scrape-examples = true
  427. [[example]]
  428. name = "suspense"
  429. required-features = ["http", "desktop"]
  430. doc-scrape-examples = true
  431. [[example]]
  432. name = "weather_app"
  433. required-features = ["http"]
  434. doc-scrape-examples = true
  435. [[example]]
  436. name = "image_generator_openai"
  437. required-features = ["http"]
  438. doc-scrape-examples = true
  439. [[example]]
  440. name = "hash_fragment_state"
  441. required-features = ["ciborium", "base64"]
  442. doc-scrape-examples = true
  443. [[example]]
  444. name = "backgrounded_futures"
  445. required-features = ["desktop"]
  446. doc-scrape-examples = true
  447. [[example]]
  448. name = "calculator_mutable"
  449. required-features = ["desktop"]
  450. doc-scrape-examples = true
  451. [[example]]
  452. name = "calculator"
  453. required-features = ["desktop"]
  454. doc-scrape-examples = true
  455. [[example]]
  456. name = "clock"
  457. doc-scrape-examples = true
  458. [[example]]
  459. name = "crm"
  460. required-features = ["desktop"]
  461. doc-scrape-examples = true
  462. [[example]]
  463. name = "custom_html"
  464. required-features = ["desktop"]
  465. doc-scrape-examples = true
  466. [[example]]
  467. name = "custom_menu"
  468. required-features = ["desktop"]
  469. doc-scrape-examples = true
  470. [[example]]
  471. name = "dynamic_asset"
  472. required-features = ["desktop"]
  473. doc-scrape-examples = true
  474. [[example]]
  475. name = "errors"
  476. required-features = ["desktop"]
  477. doc-scrape-examples = true
  478. [[example]]
  479. name = "future"
  480. doc-scrape-examples = true
  481. [[example]]
  482. name = "hydration"
  483. required-features = ["desktop"]
  484. doc-scrape-examples = true
  485. [[example]]
  486. name = "multiwindow"
  487. required-features = ["desktop"]
  488. doc-scrape-examples = true
  489. [[example]]
  490. name = "overlay"
  491. required-features = ["desktop"]
  492. doc-scrape-examples = true
  493. [[example]]
  494. name = "popup"
  495. required-features = ["desktop"]
  496. doc-scrape-examples = true
  497. [[example]]
  498. name = "read_size"
  499. required-features = ["desktop"]
  500. doc-scrape-examples = true
  501. [[example]]
  502. name = "shortcut"
  503. required-features = ["desktop"]
  504. doc-scrape-examples = true
  505. [[example]]
  506. name = "streams"
  507. doc-scrape-examples = true
  508. [[example]]
  509. name = "visible"
  510. doc-scrape-examples = true
  511. [[example]]
  512. name = "window_event"
  513. required-features = ["desktop"]
  514. doc-scrape-examples = true
  515. [[example]]
  516. name = "window_focus"
  517. required-features = ["desktop"]
  518. doc-scrape-examples = true
  519. [[example]]
  520. name = "window_zoom"
  521. required-features = ["desktop"]
  522. doc-scrape-examples = true
  523. [[example]]
  524. name = "wgpu_child_window"
  525. required-features = ["desktop", "gpu"]
  526. [[example]]
  527. name = "control_focus"
  528. doc-scrape-examples = true
  529. [[example]]
  530. name = "eval"
  531. doc-scrape-examples = true
  532. [[example]]
  533. name = "logging"
  534. doc-scrape-examples = true