1
0

Cargo.toml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. [package]
  2. name = "dioxus-desktop"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley"]
  5. edition = "2021"
  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-cli-config = { workspace = true, features = ["read-config"] }
  21. generational-box = { workspace = true }
  22. serde = "1.0.136"
  23. serde_json = "1.0.79"
  24. thiserror = { workspace = true }
  25. tracing = { workspace = true }
  26. wry = { version = "0.37.0", default-features = false, features = [
  27. "os-webview",
  28. "protocol",
  29. "file-drop",
  30. ] }
  31. futures-channel = { workspace = true }
  32. tokio = { workspace = true, features = [
  33. "sync",
  34. "rt-multi-thread",
  35. "rt",
  36. "time",
  37. "macros",
  38. "fs",
  39. ], optional = true }
  40. webbrowser = "0.8.0"
  41. infer = "0.11.0"
  42. dunce = "1.0.2"
  43. slab = { workspace = true }
  44. rustc-hash = { workspace = true }
  45. dioxus-hooks = { workspace = true }
  46. futures-util = { workspace = true }
  47. urlencoding = "2.1.2"
  48. async-trait = "0.1.68"
  49. tao = { version = "0.26.1", features = ["rwh_05"] }
  50. [target.'cfg(unix)'.dependencies]
  51. signal-hook = "0.3.17"
  52. [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]
  53. global-hotkey = "0.5.0"
  54. rfd = "0.12"
  55. muda = "0.11.3"
  56. # hotreload only works on desktop platforms.... mobile is still wip
  57. dioxus-hot-reload = { workspace = true, optional = true }
  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. cocoa = "0.25"
  63. core-foundation = "0.9.3"
  64. objc = "0.2.7"
  65. [features]
  66. default = ["tokio_runtime", "wry/objc-exception", "hot-reload"]
  67. tokio_runtime = ["tokio"]
  68. fullscreen = ["wry/fullscreen"]
  69. transparent = ["wry/transparent"]
  70. devtools = ["wry/devtools"]
  71. hot-reload = ["dioxus-hot-reload"]
  72. gnu = []
  73. [package.metadata.docs.rs]
  74. default-features = false
  75. features = ["tokio_runtime", "hot-reload"]
  76. [dev-dependencies]
  77. dioxus = { workspace = true, features = ["desktop"] }
  78. exitcode = "1.1.2"
  79. # These tests need to be run on the main thread, so they cannot use rust's test harness.
  80. [[test]]
  81. name = "check_events"
  82. path = "headless_tests/events.rs"
  83. harness = false
  84. [[test]]
  85. name = "check_rendering"
  86. path = "headless_tests/rendering.rs"
  87. harness = false