1
0

Cargo.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 = [
  26. "std",
  27. "async-await",
  28. "async-await-macro",
  29. ] }
  30. futures-channel = { workspace = true }
  31. serde_json = { version = "1.0" }
  32. serde = { version = "1.0" }
  33. serde-wasm-bindgen = { version = "0.5.0", optional = true }
  34. async-trait = { version = "0.1.58", optional = true }
  35. [dependencies.web-sys]
  36. version = "0.3.56"
  37. features = [
  38. "Document",
  39. "HtmlElement",
  40. "HtmlInputElement",
  41. "HtmlSelectElement",
  42. "HtmlTextAreaElement",
  43. "HtmlFormElement",
  44. "Text",
  45. "Window",
  46. "DataTransfer",
  47. "console",
  48. "NodeList",
  49. ]
  50. [features]
  51. default = ["panic_hook", "mounted", "file_engine", "hot_reload", "eval"]
  52. panic_hook = ["console_error_panic_hook"]
  53. hydrate = ["web-sys/Comment"]
  54. mounted = ["web-sys/Element", "dioxus-html/mounted"]
  55. file_engine = [
  56. "web-sys/File",
  57. "web-sys/FileList",
  58. "web-sys/FileReader",
  59. "async-trait",
  60. ]
  61. hot_reload = ["web-sys/MessageEvent", "web-sys/WebSocket", "web-sys/Location"]
  62. eval = ["dioxus-html/eval", "serde-wasm-bindgen", "async-trait"]
  63. [dev-dependencies]
  64. dioxus = { workspace = true }
  65. wasm-bindgen-test = "0.3.29"
  66. dioxus-ssr = { workspace = true, default-features = false }
  67. gloo-timers = "0.2.3"
  68. gloo-dialogs = "0.1.1"
  69. dioxus-web = { path = ".", features = ["hydrate"] }
  70. tracing-wasm = "0.2.1"