Cargo.toml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [package]
  2. name = "dioxus"
  3. version = { workspace = true }
  4. authors = ["Jonathan Kelley", "Dioxus Labs", "ealmloff"]
  5. edition = "2021"
  6. description = "Portable, performant, and ergonomic framework for building cross-platform user interfaces in Rust"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com/learn/0.5/"
  10. keywords = ["dom", "ui", "gui", "react", "wasm"]
  11. rust-version = "1.65.0"
  12. [dependencies]
  13. dioxus-core = { workspace = true }
  14. dioxus-html = { workspace = true, optional = true }
  15. dioxus-core-macro = { workspace = true, optional = true }
  16. dioxus-config-macro = { workspace = true, optional = true }
  17. dioxus-hooks = { workspace = true, optional = true }
  18. dioxus-signals = { workspace = true, optional = true }
  19. dioxus-router = { workspace = true, optional = true }
  20. dioxus-web = { workspace = true, optional = true }
  21. dioxus-mobile = { workspace = true, optional = true }
  22. dioxus-desktop = { workspace = true, default-features = true, optional = true }
  23. dioxus-fullstack = { workspace = true, optional = true }
  24. dioxus-static-site-generation = { workspace = true, optional = true }
  25. dioxus-liveview = { workspace = true, optional = true }
  26. dioxus-ssr ={ workspace = true, optional = true }
  27. serde = { version = "1.0.136", optional = true }
  28. [target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "android")))'.dependencies]
  29. dioxus-hot-reload = { workspace = true, optional = true }
  30. [features]
  31. default = ["macro", "html", "hot-reload", "signals", "hooks", "launch"]
  32. signals = ["dep:dioxus-signals"]
  33. macro = ["dep:dioxus-core-macro"]
  34. html = ["dep:dioxus-html"]
  35. hooks = ["dep:dioxus-hooks"]
  36. hot-reload = ["dep:dioxus-hot-reload"]
  37. launch = ["dep:dioxus-config-macro"]
  38. router = ["dep:dioxus-router"]
  39. # Platforms
  40. fullstack = ["dep:dioxus-fullstack", "dioxus-config-macro/fullstack", "dep:serde", "dioxus-router?/fullstack"]
  41. desktop = ["dep:dioxus-desktop", "dioxus-fullstack?/desktop", "dioxus-config-macro/desktop"]
  42. mobile = ["dep:dioxus-mobile", "dioxus-fullstack?/mobile", "dioxus-config-macro/mobile"]
  43. web = ["dep:dioxus-web", "dioxus-fullstack?/web", "dioxus-static-site-generation?/web", "dioxus-config-macro/web", "dioxus-router?/web"]
  44. ssr = ["dep:dioxus-ssr", "dioxus-router?/ssr", "dioxus-config-macro/ssr"]
  45. liveview = ["dep:dioxus-liveview", "dioxus-config-macro/liveview", "dioxus-router?/liveview"]
  46. static-generation = ["dep:dioxus-static-site-generation", "dioxus-config-macro/static-generation"]
  47. axum = ["dioxus-fullstack?/axum", "dioxus-fullstack?/server", "dioxus-static-site-generation?/server", "ssr", "dioxus-liveview?/axum"]
  48. # This feature just disables the no-renderer-enabled warning
  49. third-party-renderer = []
  50. [dev-dependencies]
  51. futures-util = { workspace = true }
  52. tracing = { workspace = true }
  53. rand = { version = "0.8.4", features = ["small_rng"] }
  54. criterion = "0.3.5"
  55. thiserror = { workspace = true }
  56. env_logger = "0.10.0"
  57. tokio = { workspace = true, features = ["full"] }
  58. dioxus = { workspace = true }
  59. [[bench]]
  60. name = "jsframework"
  61. harness = false
  62. [package.metadata.docs.rs]
  63. cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]