1
0

Cargo.toml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [package]
  2. name = "dioxus-router"
  3. authors = ["Jonathan Kelley", "Evan Almloff"]
  4. version = { workspace = true }
  5. edition = "2021"
  6. description = "Cross-platform router for Dioxus apps"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com"
  10. keywords = ["dom", "ui", "gui", "react", "wasm"]
  11. [dependencies]
  12. dioxus-lib = { workspace = true }
  13. dioxus-router-macro = { workspace = true }
  14. gloo = { version = "0.8.0", optional = true }
  15. tracing = { workspace = true }
  16. urlencoding = "2.1.3"
  17. serde = { version = "1", features = ["derive"], optional = true }
  18. serde_json = { version = "1.0.91", optional = true }
  19. url = "2.3.1"
  20. wasm-bindgen = { workspace = true, optional = true }
  21. web-sys = { version = "0.3.60", optional = true, features = [
  22. "ScrollRestoration",
  23. ] }
  24. js-sys = { version = "0.3.63", optional = true }
  25. gloo-utils = { version = "0.1.6", optional = true }
  26. dioxus-liveview = { workspace = true, optional = true }
  27. dioxus-ssr = { workspace = true, optional = true }
  28. dioxus-fullstack = { workspace = true, optional = true }
  29. tokio = { workspace = true, features = ["full"], optional = true }
  30. dioxus-cli-config = { workspace = true, features = ["read-config"] }
  31. [features]
  32. default = []
  33. ssr = ["dioxus-ssr/incremental", "tokio", "dioxus-fullstack?/server"]
  34. liveview = ["dioxus-liveview", "tokio", "dep:serde", "serde_json"]
  35. wasm_test = []
  36. web = ["gloo", "web-sys", "wasm-bindgen", "gloo-utils", "js-sys", "dioxus-router-macro/web"]
  37. fullstack = ["dioxus-fullstack"]
  38. [dev-dependencies]
  39. axum = { workspace = true, features = ["ws"] }
  40. dioxus = { workspace = true, features = ["router"] }
  41. # dioxus-liveview = { workspace = true, features = ["axum"] }
  42. dioxus-ssr = { workspace = true }
  43. criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
  44. [[example]]
  45. name = "static_generation"
  46. required-features = ["ssr"]
  47. [[bench]]
  48. name = "incremental"
  49. required-features = ["ssr"]
  50. harness = false