Cargo.toml 17 KB

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