Cargo.toml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [package]
  2. name = "dioxus-html"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley"]
  5. edition = "2021"
  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. generational-box = { workspace = true }
  16. serde = { version = "1", features = ["derive"], optional = true }
  17. serde_repr = { version = "0.1", optional = true }
  18. wasm-bindgen = { workspace = true, optional = true }
  19. euclid = "0.22.7"
  20. enumset = "1.1.2"
  21. keyboard-types = "0.7"
  22. async-trait = "0.1.58"
  23. serde-value = { version = "0.7.0", optional = true }
  24. tokio = { workspace = true, features = ["fs", "io-util"], optional = true }
  25. rfd = { version = "0.12", optional = true }
  26. futures-channel = { workspace = true }
  27. serde_json = { version = "1", optional = true }
  28. [dependencies.web-sys]
  29. optional = true
  30. version = "0.3.56"
  31. features = [
  32. "Touch",
  33. "TouchList",
  34. "TouchEvent",
  35. "MouseEvent",
  36. "DragEvent",
  37. "InputEvent",
  38. "ClipboardEvent",
  39. "KeyboardEvent",
  40. "WheelEvent",
  41. "AnimationEvent",
  42. "TransitionEvent",
  43. "PointerEvent",
  44. "FocusEvent",
  45. "CompositionEvent",
  46. ]
  47. [dev-dependencies]
  48. serde_json = "1"
  49. [features]
  50. default = ["serialize", "mounted", "eval"]
  51. serialize = [
  52. "serde",
  53. "serde_json",
  54. "serde_repr",
  55. "euclid/serde",
  56. "keyboard-types/serde",
  57. "dioxus-core/serialize",
  58. "serde-value",
  59. ]
  60. mounted = [
  61. "web-sys?/Element",
  62. "web-sys?/DomRect",
  63. "web-sys?/ScrollIntoViewOptions",
  64. "web-sys?/ScrollLogicalPosition",
  65. "web-sys?/ScrollBehavior",
  66. "web-sys?/HtmlElement",
  67. ]
  68. eval = [
  69. "serde",
  70. "serde_json"
  71. ]
  72. wasm-bind = ["web-sys", "wasm-bindgen"]
  73. native-bind = ["tokio"]
  74. hot-reload-context = ["dioxus-rsx"]
  75. html-to-rsx = []