Cargo.toml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [package]
  2. name = "dioxus-html"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley"]
  5. edition = "2018"
  6. description = "HTML Element pack for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com"
  10. keywords = ["dom", "ui", "gui", "react"]
  11. [dependencies]
  12. dioxus-core = { workspace = true }
  13. dioxus-rsx = { workspace = true, features = ["hot_reload"], optional = true }
  14. dioxus-html-internal-macro = { workspace = true }
  15. serde = { version = "1", features = ["derive"], optional = true }
  16. serde_repr = { version = "0.1", optional = true }
  17. wasm-bindgen = { workspace = true, optional = true }
  18. euclid = "0.22.7"
  19. enumset = "1.1.2"
  20. keyboard-types = "0.7"
  21. async-trait = "0.1.58"
  22. serde-value = { version = "0.7.0", optional = true }
  23. tokio = { workspace = true, features = ["fs", "io-util"], optional = true }
  24. rfd = { version = "0.12", optional = true }
  25. async-channel = "1.8.0"
  26. serde_json = { version = "1", optional = true }
  27. [dependencies.web-sys]
  28. optional = true
  29. version = "0.3.56"
  30. features = [
  31. "Touch",
  32. "TouchList",
  33. "TouchEvent",
  34. "MouseEvent",
  35. "InputEvent",
  36. "ClipboardEvent",
  37. "KeyboardEvent",
  38. "WheelEvent",
  39. "AnimationEvent",
  40. "TransitionEvent",
  41. "PointerEvent",
  42. "FocusEvent",
  43. "CompositionEvent",
  44. ]
  45. [dev-dependencies]
  46. serde_json = "1"
  47. [features]
  48. default = ["serialize", "mounted", "eval"]
  49. serialize = [
  50. "serde_repr",
  51. "euclid/serde",
  52. "keyboard-types/serde",
  53. "dioxus-core/serialize",
  54. "serde-value",
  55. ]
  56. mounted = [
  57. "web-sys?/Element",
  58. "web-sys?/DomRect",
  59. "web-sys?/ScrollIntoViewOptions",
  60. "web-sys?/ScrollLogicalPosition",
  61. "web-sys?/ScrollBehavior",
  62. "web-sys?/HtmlElement",
  63. ]
  64. eval = [
  65. "serde",
  66. "serde_json"
  67. ]
  68. wasm-bind = ["web-sys", "wasm-bindgen"]
  69. native-bind = ["tokio"]
  70. hot-reload-context = ["dioxus-rsx"]
  71. html-to-rsx = []