Cargo.toml 15 KB

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