1
0

Cargo.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/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. "web",
  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. 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 = "0.5.0"
  29. async-trait = "0.1.58"
  30. async-channel = "1.8.0"
  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. ]
  60. hot_reload = [
  61. "web-sys/MessageEvent",
  62. "web-sys/WebSocket",
  63. "web-sys/Location",
  64. ]
  65. eval = [
  66. "dioxus-html/eval",
  67. ]
  68. [dev-dependencies]
  69. dioxus = { workspace = true }
  70. wasm-bindgen-test = "0.3.29"
  71. dioxus-ssr = { workspace = true}
  72. wasm-logger = "0.2.0"
  73. gloo-timers = "0.2.3"
  74. gloo-dialogs = "0.1.1"
  75. dioxus-web = { path = ".", features = ["hydrate"] }
  76. tracing-wasm = "0.2.1"