Cargo.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. js-sys = "0.3.56"
  19. wasm-bindgen = { workspace = true }
  20. wasm-bindgen-futures = "0.4.29"
  21. tracing = { workspace = true }
  22. rustc-hash = { workspace = true }
  23. console_error_panic_hook = { version = "0.1.7", optional = true }
  24. futures-util = { workspace = true, features = ["std", "async-await", "async-await-macro"] }
  25. futures-channel = { workspace = true }
  26. serde_json = { version = "1.0" }
  27. serde = { version = "1.0" }
  28. serde-wasm-bindgen = { version = "0.5.0", optional = true }
  29. async-trait = { version = "0.1.58", optional = true }
  30. [dependencies.web-sys]
  31. version = "0.3.56"
  32. features = [
  33. "Document",
  34. "HtmlElement",
  35. "HtmlInputElement",
  36. "HtmlSelectElement",
  37. "HtmlTextAreaElement",
  38. "HtmlFormElement",
  39. "Text",
  40. "Window",
  41. "DataTransfer",
  42. "console"
  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. ]
  50. mounted = [
  51. "web-sys/Element",
  52. "dioxus-html/mounted"
  53. ]
  54. file_engine = [
  55. "web-sys/File",
  56. "web-sys/FileList",
  57. "web-sys/FileReader",
  58. "async-trait"
  59. ]
  60. hot_reload = [
  61. "web-sys/MessageEvent",
  62. "web-sys/WebSocket",
  63. "web-sys/Location",
  64. ]
  65. eval = [
  66. "dioxus-html/eval",
  67. "serde-wasm-bindgen",
  68. "async-trait"
  69. ]
  70. [dev-dependencies]
  71. dioxus = { workspace = true }
  72. wasm-bindgen-test = "0.3.29"
  73. dioxus-ssr = { workspace = true, default-features = false }
  74. gloo-timers = "0.2.3"
  75. gloo-dialogs = "0.1.1"
  76. dioxus-web = { path = ".", features = ["hydrate"] }
  77. tracing-wasm = "0.2.1"