Cargo.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [package]
  2. name = "dioxus-web"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley"]
  5. edition = "2018"
  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/docs/0.3/guide/en/getting_started/web.html"
  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. "sledgehammer",
  16. "minimal_bindings",
  17. ] }
  18. js-sys = "0.3.56"
  19. wasm-bindgen = { workspace = true, features = ["enable-interning"] }
  20. wasm-bindgen-futures = "0.4.29"
  21. tracing = { workspace = true }
  22. log = { 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 = "0.5.0"
  30. async-trait = "0.1.58"
  31. async-channel = "1.8.0"
  32. [dependencies.web-sys]
  33. version = "0.3.56"
  34. features = [
  35. "Document",
  36. "HtmlElement",
  37. "HtmlInputElement",
  38. "HtmlSelectElement",
  39. "HtmlTextAreaElement",
  40. "HtmlFormElement",
  41. "Text",
  42. "Window",
  43. ]
  44. [features]
  45. default = ["panic_hook", "mounted", "file_engine", "hot_reload", "eval"]
  46. panic_hook = ["console_error_panic_hook"]
  47. hydrate = [
  48. "web-sys/Comment",
  49. "web-sys/console",
  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. ]
  60. hot_reload = [
  61. "web-sys/MessageEvent",
  62. "web-sys/WebSocket",
  63. "web-sys/Location",
  64. ]
  65. eval = []
  66. [dev-dependencies]
  67. dioxus = { workspace = true }
  68. wasm-bindgen-test = "0.3.29"
  69. dioxus-ssr = { workspace = true}
  70. wasm-logger = "0.2.0"
  71. gloo-timers = "0.2.3"
  72. gloo-dialogs = "0.1.1"
  73. dioxus-web = { path = ".", features = ["hydrate"] }