Cargo.toml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [package]
  2. name = "dioxus-desktop"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley"]
  5. edition = "2018"
  6. description = "WebView renderer for Dioxus"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com/docs/0.3/guide/en/getting_started/desktop.html"
  10. keywords = ["dom", "ui", "gui", "react"]
  11. [dependencies]
  12. dioxus-core = { workspace = true, features = ["serialize"] }
  13. dioxus-html = { workspace = true, features = ["serialize", "native-bind"] }
  14. dioxus-interpreter-js = { workspace = true }
  15. dioxus-hot-reload = { workspace = true, optional = true }
  16. serde = "1.0.136"
  17. serde_json = "1.0.79"
  18. thiserror = { workspace = true }
  19. log = { workspace = true }
  20. wry = { version = "0.28.0" }
  21. futures-channel = { workspace = true }
  22. tokio = { workspace = true, features = [
  23. "sync",
  24. "rt-multi-thread",
  25. "rt",
  26. "time",
  27. "macros",
  28. "fs",
  29. ], optional = true }
  30. webbrowser = "0.8.0"
  31. infer = "0.11.0"
  32. dunce = "1.0.2"
  33. slab = { workspace = true }
  34. futures-util = { workspace = true }
  35. urlencoding = "2.1.2"
  36. async-trait = "0.1.68"
  37. [target.'cfg(any(target_os = "windows",target_os = "macos",target_os = "linux",target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
  38. # This is only for debug mode, and it appears mobile does not support some packages this uses
  39. manganis-cli-support = { git = "https://github.com/DioxusLabs/collect-assets", features = ["webp", "html"] }
  40. rfd = "0.11.3"
  41. [target.'cfg(target_os = "ios")'.dependencies]
  42. objc = "0.2.7"
  43. objc_id = "0.1.1"
  44. [target.'cfg(target_os = "macos")'.dependencies]
  45. core-foundation = "0.9.3"
  46. objc = "0.2.7"
  47. [features]
  48. default = ["tokio_runtime", "hot-reload"]
  49. tokio_runtime = ["tokio"]
  50. fullscreen = ["wry/fullscreen"]
  51. transparent = ["wry/transparent"]
  52. devtools = ["wry/devtools"]
  53. dox = ["wry/dox"]
  54. hot-reload = ["dioxus-hot-reload"]
  55. [dev-dependencies]
  56. dioxus-core-macro = { workspace = true }
  57. dioxus-hooks = { workspace = true }
  58. dioxus = { workspace = true }
  59. exitcode = "1.1.2"
  60. scraper = "0.16.0"
  61. # These tests need to be run on the main thread, so they cannot use rust's test harness.
  62. [[test]]
  63. name = "check_events"
  64. path = "headless_tests/events.rs"
  65. harness = false
  66. [[test]]
  67. name = "check_rendering"
  68. path = "headless_tests/rendering.rs"
  69. harness = false