Cargo.toml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. "DragEvent",
  36. "InputEvent",
  37. "ClipboardEvent",
  38. "KeyboardEvent",
  39. "WheelEvent",
  40. "AnimationEvent",
  41. "TransitionEvent",
  42. "PointerEvent",
  43. "FocusEvent",
  44. "CompositionEvent",
  45. ]
  46. [dev-dependencies]
  47. serde_json = "1"
  48. [features]
  49. default = ["serialize", "mounted", "eval"]
  50. serialize = [
  51. "serde_repr",
  52. "euclid/serde",
  53. "keyboard-types/serde",
  54. "dioxus-core/serialize",
  55. "serde-value",
  56. ]
  57. mounted = [
  58. "web-sys?/Element",
  59. "web-sys?/DomRect",
  60. "web-sys?/ScrollIntoViewOptions",
  61. "web-sys?/ScrollLogicalPosition",
  62. "web-sys?/ScrollBehavior",
  63. "web-sys?/HtmlElement",
  64. ]
  65. eval = [
  66. "serde",
  67. "serde_json"
  68. ]
  69. wasm-bind = ["web-sys", "wasm-bindgen"]
  70. native-bind = ["tokio"]
  71. hot-reload-context = ["dioxus-rsx"]
  72. html-to-rsx = []