Cargo.toml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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, features = ["binary-protocol"] }
  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.34.0", default-features = false, features = ["tao", "protocol", "file-drop"] }
  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. rustc-hash = { workspace = true }
  35. futures-util = { workspace = true }
  36. urlencoding = "2.1.2"
  37. async-trait = "0.1.68"
  38. crossbeam-channel = "0.5.8"
  39. [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]
  40. rfd = "0.12"
  41. global-hotkey = { git = "https://github.com/tauri-apps/global-hotkey" }
  42. [target.'cfg(target_os = "ios")'.dependencies]
  43. objc = "0.2.7"
  44. objc_id = "0.1.1"
  45. [target.'cfg(target_os = "macos")'.dependencies]
  46. core-foundation = "0.9.3"
  47. objc = "0.2.7"
  48. [features]
  49. default = ["tokio_runtime", "hot-reload", "wry/objc-exception"]
  50. tokio_runtime = ["tokio"]
  51. fullscreen = ["wry/fullscreen"]
  52. transparent = ["wry/transparent"]
  53. devtools = ["wry/devtools"]
  54. hot-reload = ["dioxus-hot-reload"]
  55. gnu = []
  56. [package.metadata.docs.rs]
  57. default-features = false
  58. features = ["tokio_runtime", "hot-reload"]
  59. [dev-dependencies]
  60. dioxus-core-macro = { workspace = true }
  61. dioxus-hooks = { workspace = true }
  62. dioxus = { workspace = true }
  63. exitcode = "1.1.2"
  64. scraper = "0.16.0"
  65. [build-dependencies]
  66. dioxus-interpreter-js = { workspace = true, features = ["binary-protocol"] }
  67. minify-js = "0.5.6"
  68. # These tests need to be run on the main thread, so they cannot use rust's test harness.
  69. [[test]]
  70. name = "check_events"
  71. path = "headless_tests/events.rs"
  72. harness = false
  73. [[test]]
  74. name = "check_rendering"
  75. path = "headless_tests/rendering.rs"
  76. harness = false