Cargo.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [package]
  2. name = "dioxus-web"
  3. version = "0.3.2"
  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"], default-features = false }
  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. log = { 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. ]
  43. [features]
  44. default = ["panic_hook", "mounted", "file_engine", "hot_reload", "eval"]
  45. panic_hook = ["console_error_panic_hook"]
  46. hydrate = [
  47. "web-sys/Comment",
  48. "web-sys/console",
  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. ]
  59. hot_reload = [
  60. "web-sys/MessageEvent",
  61. "web-sys/WebSocket",
  62. "web-sys/Location",
  63. ]
  64. eval = []
  65. [dev-dependencies]
  66. dioxus = { workspace = true }
  67. wasm-bindgen-test = "0.3.29"
  68. dioxus-ssr = { workspace = true}
  69. wasm-logger = "0.2.0"
  70. gloo-timers = "0.2.3"
  71. gloo-dialogs = "0.1.1"
  72. dioxus-web = { workspace = true, features = ["hydrate"] }