Cargo.toml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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-html = { workspace = true, optional = true }
  26. [build-dependencies]
  27. lazy-js-bundle = { workspace = true }
  28. [features]
  29. default = []
  30. serialize = ["dep:serde"]
  31. sledgehammer = ["dep:sledgehammer_bindgen", "dep:sledgehammer_utils", "dep:rustc-hash"]
  32. webonly = [
  33. "sledgehammer",
  34. "dep:wasm-bindgen",
  35. "dep:wasm-bindgen-futures",
  36. "dep:js-sys",
  37. "dep:web-sys",
  38. "sledgehammer_bindgen/web",
  39. ]
  40. binary-protocol = ["sledgehammer", "dep:dioxus-core", "dep:dioxus-html"]
  41. minimal_bindings = []