Cargo.toml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [package]
  2. name = "dioxus-web"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley"]
  5. edition = "2021"
  6. description = "Web renderer for Dioxus using websys"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com/learn/0.4/getting_started/wasm"
  10. keywords = ["dom", "ui", "gui", "react", "wasm"]
  11. [dependencies]
  12. dioxus-core = { workspace = true, features = ["serialize"] }
  13. dioxus-html = { workspace = true, features = ["wasm-bind"] }
  14. dioxus-interpreter-js = { workspace = true, features = [
  15. "minimal_bindings",
  16. "webonly",
  17. ] }
  18. generational-box = { workspace = true }
  19. js-sys = "0.3.56"
  20. wasm-bindgen = { workspace = true }
  21. wasm-bindgen-futures = "0.4.29"
  22. tracing = { workspace = true }
  23. rustc-hash = { workspace = true }
  24. console_error_panic_hook = { version = "0.1.7", optional = true }
  25. futures-util = { workspace = true, features = ["std", "async-await", "async-await-macro"] }
  26. futures-channel = { workspace = true }
  27. serde_json = { version = "1.0" }
  28. serde = { version = "1.0" }
  29. serde-wasm-bindgen = { version = "0.5.0", optional = true }
  30. async-trait = { version = "0.1.58", optional = true }
  31. [dependencies.web-sys]
  32. version = "0.3.56"
  33. features = [
  34. "Document",
  35. "HtmlElement",
  36. "HtmlInputElement",
  37. "HtmlSelectElement",
  38. "HtmlTextAreaElement",
  39. "HtmlFormElement",
  40. "Text",
  41. "Window",
  42. "DataTransfer",
  43. "console"
  44. ]
  45. [features]
  46. default = ["panic_hook", "mounted", "file_engine", "hot_reload", "eval"]
  47. panic_hook = ["console_error_panic_hook"]
  48. hydrate = [
  49. "web-sys/Comment",
  50. ]
  51. mounted = [
  52. "web-sys/Element",
  53. "dioxus-html/mounted"
  54. ]
  55. file_engine = [
  56. "web-sys/File",
  57. "web-sys/FileList",
  58. "web-sys/FileReader",
  59. "async-trait"
  60. ]
  61. hot_reload = [
  62. "web-sys/MessageEvent",
  63. "web-sys/WebSocket",
  64. "web-sys/Location",
  65. ]
  66. eval = [
  67. "dioxus-html/eval",
  68. "serde-wasm-bindgen",
  69. "async-trait"
  70. ]
  71. [dev-dependencies]
  72. dioxus = { workspace = true }
  73. wasm-bindgen-test = "0.3.29"
  74. dioxus-ssr = { workspace = true, default-features = false }
  75. gloo-timers = "0.2.3"
  76. gloo-dialogs = "0.1.1"
  77. dioxus-web = { path = ".", features = ["hydrate"] }
  78. tracing-wasm = "0.2.1"