Cargo.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [package]
  2. name = "dioxus-interpreter-js"
  3. version = { workspace = true }
  4. edition = "2021"
  5. authors = ["Jonathan Kelley"]
  6. description = "JS Interpreter for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com"
  10. documentation = "https://docs.rs/dioxus"
  11. keywords = ["dom", "ui", "gui", "react", "wasm"]
  12. [dependencies]
  13. wasm-bindgen = { workspace = true, optional = true }
  14. wasm-bindgen-futures = { workspace = true, optional = true }
  15. js-sys = { version = "0.3.56", optional = true }
  16. web-sys = { version = "0.3.56", optional = true, features = [
  17. "Element",
  18. "Node",
  19. ] }
  20. sledgehammer_bindgen = { version = "0.6.0", default-features = false, optional = true }
  21. sledgehammer_utils = { version = "0.3.1", optional = true }
  22. serde = { version = "1.0", features = ["derive"], optional = true }
  23. rustc-hash = { workspace = true, optional = true }
  24. dioxus-core = { workspace = true, optional = true }
  25. dioxus-core-types = { workspace = true, optional = true }
  26. dioxus-html = { workspace = true, optional = true }
  27. [build-dependencies]
  28. lazy-js-bundle = { workspace = true }
  29. [features]
  30. default = []
  31. serialize = ["dep:serde"]
  32. sledgehammer = ["dep:sledgehammer_bindgen", "dep:sledgehammer_utils", "dep:rustc-hash"]
  33. webonly = [
  34. "sledgehammer",
  35. "dep:wasm-bindgen",
  36. "dep:wasm-bindgen-futures",
  37. "dep:js-sys",
  38. "dep:web-sys",
  39. "sledgehammer_bindgen/web",
  40. ]
  41. binary-protocol = ["sledgehammer", "dep:dioxus-core", "dep:dioxus-core-types", "dep:dioxus-html"]
  42. minimal_bindings = []