Cargo.toml 2.5 KB

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