Cargo.toml 17 KB

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