Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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-history = { workspace = true }
  14. dioxus-router-macro = { workspace = true }
  15. dioxus-fullstack-hooks = { workspace = true, optional = true }
  16. tracing = { workspace = true }
  17. percent-encoding = { workspace = true }
  18. url = { workspace = true }
  19. dioxus-cli-config = { workspace = true }
  20. rustversion = { workspace = true }
  21. [features]
  22. default = []
  23. streaming = ["dep:dioxus-fullstack-hooks"]
  24. wasm-split = []
  25. [dev-dependencies]
  26. axum = { workspace = true, features = ["ws"] }
  27. dioxus = { workspace = true, features = ["router"] }
  28. dioxus-ssr = { workspace = true }
  29. criterion = { workspace = true, features = ["async_tokio", "html_reports"] }
  30. ciborium = { workspace = true }
  31. base64 = { workspace = true }
  32. serde = { workspace = true, features = ["derive"] }
  33. tokio = { workspace = true, features = ["full"] }
  34. dioxus-router = { workspace = true }
  35. [package.metadata.docs.rs]
  36. cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
  37. # Most of the examples live in the workspace. We include some here so that docs.rs can scrape our examples for better inline docs
  38. [[example]]
  39. name = "hash_fragment_state"
  40. path = "../../examples/hash_fragment_state.rs"
  41. doc-scrape-examples = true
  42. [[example]]
  43. name = "query_segment_search"
  44. path = "../../examples/query_segment_search.rs"
  45. doc-scrape-examples = true
  46. [[example]]
  47. name = "simple_router"
  48. path = "../../examples/simple_router.rs"
  49. doc-scrape-examples = true