Cargo.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 = { workspace = true, features = ["serialize"] }
  15. dioxus-html = { workspace = true, features = ["serialize", "native-bind"] }
  16. dioxus-interpreter-js = { workspace = true }
  17. dioxus-hot-reload = { workspace = true, optional = true }
  18. serde = "1.0.136"
  19. serde_json = "1.0.79"
  20. thiserror = "1.0.30"
  21. log = { workspace = true }
  22. wry = { version = "0.27.2" }
  23. futures-channel = { workspace = true }
  24. tokio = { workspace = true, features = [
  25. "sync",
  26. "rt-multi-thread",
  27. "rt",
  28. "time",
  29. "macros",
  30. "fs",
  31. ], optional = true }
  32. webbrowser = "0.8.0"
  33. infer = "0.11.0"
  34. dunce = "1.0.2"
  35. slab = { workspace = true }
  36. futures-util = { workspace = true }
  37. urlencoding = "2.1.2"
  38. [target.'cfg(not(target_os = "ios"))'.dependencies]
  39. rfd = "0.11.3"
  40. [target.'cfg(target_os = "ios")'.dependencies]
  41. objc = "0.2.7"
  42. objc_id = "0.1.1"
  43. [target.'cfg(target_os = "macos")'.dependencies]
  44. core-foundation = "0.9.3"
  45. objc = "0.2.7"
  46. [features]
  47. default = ["tokio_runtime", "hot-reload"]
  48. tokio_runtime = ["tokio"]
  49. fullscreen = ["wry/fullscreen"]
  50. transparent = ["wry/transparent"]
  51. tray = ["wry/tray"]
  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