Cargo.toml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 = ["serialize", "native-bind"] }
  14. dioxus-interpreter-js = { workspace = true, features = ["binary-protocol"] }
  15. dioxus-hot-reload = { workspace = true, optional = true }
  16. serde = "1.0.136"
  17. serde_json = "1.0.79"
  18. thiserror = { workspace = true }
  19. tracing = { workspace = true }
  20. wry = { version = "0.35.0", default-features = false, features = [
  21. "protocol",
  22. "file-drop",
  23. ] }
  24. futures-channel = { workspace = true }
  25. tokio = { workspace = true, features = [
  26. "sync",
  27. "rt-multi-thread",
  28. "rt",
  29. "time",
  30. "macros",
  31. "fs",
  32. ], optional = true }
  33. webbrowser = "0.8.0"
  34. infer = "0.11.0"
  35. dunce = "1.0.2"
  36. slab = { workspace = true }
  37. rustc-hash = { workspace = true }
  38. futures-util = { workspace = true }
  39. urlencoding = "2.1.2"
  40. async-trait = "0.1.68"
  41. crossbeam-channel = "0.5.8"
  42. tao = { version = "0.24.0", features = ["rwh_05"] }
  43. muda = "0.11.3"
  44. [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]
  45. rfd = "0.12"
  46. global-hotkey = "0.4.1"
  47. [target.'cfg(target_os = "ios")'.dependencies]
  48. objc = "0.2.7"
  49. objc_id = "0.1.1"
  50. [target.'cfg(target_os = "macos")'.dependencies]
  51. core-foundation = "0.9.3"
  52. objc = "0.2.7"
  53. [features]
  54. default = ["tokio_runtime", "hot-reload", "wry/objc-exception"]
  55. tokio_runtime = ["tokio"]
  56. fullscreen = ["wry/fullscreen"]
  57. transparent = ["wry/transparent"]
  58. devtools = ["wry/devtools"]
  59. hot-reload = ["dioxus-hot-reload"]
  60. gnu = []
  61. [package.metadata.docs.rs]
  62. default-features = false
  63. features = ["tokio_runtime", "hot-reload"]
  64. [dev-dependencies]
  65. dioxus-core-macro = { workspace = true }
  66. dioxus-hooks = { workspace = true }
  67. dioxus = { workspace = true }
  68. exitcode = "1.1.2"
  69. scraper = "0.16.0"
  70. [build-dependencies]
  71. dioxus-interpreter-js = { workspace = true, features = ["binary-protocol"] }
  72. minify-js = "0.5.6"
  73. # These tests need to be run on the main thread, so they cannot use rust's test harness.
  74. [[test]]
  75. name = "check_events"
  76. path = "headless_tests/events.rs"
  77. harness = false
  78. [[test]]
  79. name = "check_rendering"
  80. path = "headless_tests/rendering.rs"
  81. harness = false