Cargo.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [package]
  2. name = "dioxus-desktop"
  3. version = "0.3.0"
  4. authors = ["Jonathan Kelley"]
  5. edition = "2018"
  6. description = "Dioxus VirtualDOM renderer for a remote webview instance"
  7. license = "MIT/Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com"
  10. documentation = "https://dioxuslabs.com"
  11. keywords = ["dom", "ui", "gui", "react"]
  12. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  13. [dependencies]
  14. dioxus-core = { path = "../core", version = "^0.3.0", features = ["serialize"] }
  15. dioxus-html = { path = "../html", features = ["serialize", "native-bind"], version = "^0.3.0" }
  16. dioxus-interpreter-js = { path = "../interpreter", version = "^0.3.0" }
  17. dioxus-hot-reload = { path = "../hot-reload", optional = true }
  18. serde = "1.0.136"
  19. serde_json = "1.0.79"
  20. thiserror = "1.0.30"
  21. log = "0.4.14"
  22. wry = { version = "0.27.2" }
  23. futures-channel = "0.3.21"
  24. tokio = { version = "1.27", features = [
  25. "sync",
  26. "rt-multi-thread",
  27. "rt",
  28. "time",
  29. "macros",
  30. "fs",
  31. ], optional = true, default-features = false }
  32. webbrowser = "0.8.0"
  33. infer = "0.11.0"
  34. dunce = "1.0.2"
  35. slab = "0.4"
  36. futures-util = "0.3.25"
  37. rfd = "0.11.3"
  38. urlencoding = "2.1.2"
  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. [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 = { path = "../core-macro" }
  53. dioxus-hooks = { path = "../hooks" }
  54. dioxus = { path = "../dioxus" }
  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