Cargo.toml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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, default-features = false, 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, default-features = false, optional = true }
  21. dioxus-mobile = { workspace = true, optional = true }
  22. dioxus-desktop = { workspace = true, default-features = true, optional = true }
  23. dioxus-fullstack = { workspace = true, default-features = 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. axum = { workspace = true, optional = true }
  29. [target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "android")))'.dependencies]
  30. dioxus-hot-reload = { workspace = true, optional = true }
  31. [features]
  32. default = ["macro", "html", "hot-reload", "signals", "hooks", "launch", "mounted", "file_engine", "document"]
  33. minimal = ["macro", "html", "signals", "hooks", "launch"]
  34. signals = ["dep:dioxus-signals"]
  35. macro = ["dep:dioxus-core-macro"]
  36. html = ["dep:dioxus-html"]
  37. hooks = ["dep:dioxus-hooks"]
  38. hot-reload = ["dep:dioxus-hot-reload", "dioxus-web?/hot_reload", "dioxus-fullstack?/hot-reload"]
  39. mounted = ["dioxus-web?/mounted", "dioxus-html?/mounted"]
  40. file_engine = ["dioxus-web?/file_engine"]
  41. document = ["dioxus-web?/document", "dioxus-html?/document"]
  42. launch = ["dep:dioxus-config-macro"]
  43. router = ["dep:dioxus-router"]
  44. # Platforms
  45. fullstack = ["dep:dioxus-fullstack", "dioxus-config-macro/fullstack", "dep:serde", "dioxus-router?/fullstack"]
  46. desktop = ["dep:dioxus-desktop", "dioxus-fullstack?/desktop", "dioxus-config-macro/desktop"]
  47. mobile = ["dep:dioxus-mobile", "dioxus-fullstack?/mobile", "dioxus-config-macro/mobile"]
  48. web = ["dep:dioxus-web", "dioxus-fullstack?/web", "dioxus-static-site-generation?/web", "dioxus-config-macro/web", "dioxus-router?/web"]
  49. ssr = ["dep:dioxus-ssr", "dioxus-router?/ssr", "dioxus-config-macro/ssr"]
  50. liveview = ["dep:dioxus-liveview", "dioxus-config-macro/liveview", "dioxus-router?/liveview"]
  51. static-generation = ["dep:dioxus-static-site-generation", "dioxus-config-macro/static-generation"]
  52. axum = ["dioxus-fullstack?/axum", "dioxus-fullstack?/server", "dioxus-static-site-generation?/server", "ssr", "dioxus-liveview?/axum", "dep:axum"]
  53. # This feature just disables the no-renderer-enabled warning
  54. third-party-renderer = []
  55. [dev-dependencies]
  56. futures-util = { workspace = true }
  57. tracing = { workspace = true }
  58. rand = { version = "0.8.4", features = ["small_rng"] }
  59. criterion = "0.3.5"
  60. thiserror = { workspace = true }
  61. env_logger = "0.10.0"
  62. tokio = { workspace = true, features = ["full"] }
  63. dioxus = { workspace = true }
  64. [[bench]]
  65. name = "jsframework"
  66. harness = false
  67. [package.metadata.docs.rs]
  68. cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]