Cargo.toml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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/learn/0.4/getting_started/desktop"
  10. keywords = ["dom", "ui", "gui", "react"]
  11. [dependencies]
  12. dioxus-core = { workspace = true, features = ["serialize"] }
  13. dioxus-html = { workspace = true, features = [
  14. "serialize",
  15. "native-bind",
  16. "mounted",
  17. "eval",
  18. ] }
  19. dioxus-interpreter-js = { workspace = true, features = ["binary-protocol"] }
  20. dioxus-hot-reload = { workspace = true, optional = true }
  21. serde = "1.0.136"
  22. serde_json = "1.0.79"
  23. thiserror = { workspace = true }
  24. tracing = { workspace = true }
  25. wry = { version = "0.35.0", default-features = false, features = [
  26. "os-webview",
  27. "protocol",
  28. "file-drop",
  29. ] }
  30. futures-channel = { workspace = true }
  31. tokio = { workspace = true, features = [
  32. "sync",
  33. "rt-multi-thread",
  34. "rt",
  35. "time",
  36. "macros",
  37. "fs",
  38. ], optional = true }
  39. webbrowser = "0.8.0"
  40. infer = "0.11.0"
  41. dunce = "1.0.2"
  42. slab = { workspace = true }
  43. rustc-hash = { workspace = true }
  44. futures-util = { workspace = true }
  45. urlencoding = "2.1.2"
  46. async-trait = "0.1.68"
  47. crossbeam-channel = "0.5.8"
  48. tao = { version = "0.24.0", features = ["rwh_05"] }
  49. [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]
  50. # This is only for debug mode, and it appears mobile does not support some packages this uses
  51. manganis-cli-support = { git = "https://github.com/DioxusLabs/collect-assets", optional = true, features = [
  52. "webp",
  53. "html",
  54. ] }
  55. rfd = "0.12"
  56. global-hotkey = "0.4.1"
  57. muda = "0.11.3"
  58. [target.'cfg(target_os = "ios")'.dependencies]
  59. objc = "0.2.7"
  60. objc_id = "0.1.1"
  61. [target.'cfg(target_os = "macos")'.dependencies]
  62. core-foundation = "0.9.3"
  63. objc = "0.2.7"
  64. [features]
  65. default = ["tokio_runtime", "hot-reload", "wry/objc-exception"]
  66. tokio_runtime = ["tokio"]
  67. fullscreen = ["wry/fullscreen"]
  68. transparent = ["wry/transparent"]
  69. devtools = ["wry/devtools"]
  70. hot-reload = ["dioxus-hot-reload"]
  71. asset-collect = ["manganis-cli-support"]
  72. gnu = []
  73. [package.metadata.docs.rs]
  74. default-features = false
  75. features = ["tokio_runtime", "hot-reload"]
  76. [dev-dependencies]
  77. dioxus-core-macro = { workspace = true }
  78. dioxus-hooks = { workspace = true }
  79. dioxus = { workspace = true }
  80. exitcode = "1.1.2"
  81. scraper = "0.16.0"
  82. [build-dependencies]
  83. dioxus-interpreter-js = { workspace = true, features = ["binary-protocol"] }
  84. minify-js = "0.5.6"
  85. # These tests need to be run on the main thread, so they cannot use rust's test harness.
  86. [[test]]
  87. name = "check_events"
  88. path = "headless_tests/events.rs"
  89. harness = false
  90. [[test]]
  91. name = "check_rendering"
  92. path = "headless_tests/rendering.rs"
  93. harness = false