1
0

Cargo.toml 13 KB

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