Cargo.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 }
  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.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. rfd = "0.11.3"
  39. [target.'cfg(target_os = "ios")'.dependencies]
  40. objc = "0.2.7"
  41. objc_id = "0.1.1"
  42. [target.'cfg(target_os = "macos")'.dependencies]
  43. core-foundation = "0.9.3"
  44. objc = "0.2.7"
  45. [features]
  46. default = ["tokio_runtime", "hot-reload"]
  47. tokio_runtime = ["tokio"]
  48. fullscreen = ["wry/fullscreen"]
  49. transparent = ["wry/transparent"]
  50. devtools = ["wry/devtools"]
  51. dox = ["wry/dox"]
  52. hot-reload = ["dioxus-hot-reload"]
  53. [dev-dependencies]
  54. dioxus-core-macro = { workspace = true }
  55. dioxus-hooks = { workspace = true }
  56. dioxus = { workspace = true }
  57. exitcode = "1.1.2"
  58. scraper = "0.16.0"
  59. # These tests need to be run on the main thread, so they cannot use rust's test harness.
  60. [[test]]
  61. name = "check_events"
  62. path = "headless_tests/events.rs"
  63. harness = false
  64. [[test]]
  65. name = "check_rendering"
  66. path = "headless_tests/rendering.rs"
  67. harness = false