Cargo.toml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [package]
  2. name = "dioxus-desktop"
  3. version = "0.3.0"
  4. authors = ["Jonathan Kelley"]
  5. edition = "2018"
  6. description = "WebView renderer for Dioxus"
  7. license = "MIT/Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com/docs/0.3/guide/en/getting_started/desktop.html"
  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. log = { 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. [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]
  37. rfd = "0.11.3"
  38. [target.'cfg(target_os = "ios")'.dependencies]
  39. objc = "0.2.7"
  40. objc_id = "0.1.1"
  41. [target.'cfg(target_os = "macos")'.dependencies]
  42. core-foundation = "0.9.3"
  43. objc = "0.2.7"
  44. [features]
  45. default = ["tokio_runtime", "hot-reload"]
  46. tokio_runtime = ["tokio"]
  47. fullscreen = ["wry/fullscreen"]
  48. transparent = ["wry/transparent"]
  49. tray = ["wry/tray"]
  50. hot-reload = ["dioxus-hot-reload"]
  51. [dev-dependencies]
  52. dioxus-core-macro = { workspace = true }
  53. dioxus-hooks = { workspace = true }
  54. dioxus = { workspace = true }
  55. exitcode = "1.1.2"
  56. scraper = "0.16.0"
  57. # These tests need to be run on the main thread, so they cannot use rust's test harness.
  58. [[test]]
  59. name = "check_events"
  60. path = "headless_tests/events.rs"
  61. harness = false
  62. [[test]]
  63. name = "check_rendering"
  64. path = "headless_tests/rendering.rs"
  65. harness = false