Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [package]
  2. name = "dioxus-router"
  3. version = "0.3.0"
  4. edition = "2018"
  5. description = "Cross-platform router for Dioxus apps"
  6. license = "MIT/Apache-2.0"
  7. repository = "https://github.com/DioxusLabs/dioxus/"
  8. homepage = "https://dioxuslabs.com"
  9. documentation = "https://dioxuslabs.com"
  10. keywords = ["dom", "ui", "gui", "react", "wasm"]
  11. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  12. [dependencies]
  13. anyhow = "1.0.66"
  14. dioxus = { path="../dioxus" }
  15. dioxus-router-macro = { path="../router-macro" }
  16. gloo = { version = "0.8.0", optional = true }
  17. log = "0.4.17"
  18. serde = { version = "1.0.163", features = ["derive"], optional = true }
  19. thiserror = "1.0.37"
  20. url = "2.3.1"
  21. wasm-bindgen = { version = "0.2.86", optional = true }
  22. web-sys = { version = "0.3.60", optional = true, features = ["ScrollRestoration"] }
  23. js-sys = { version = "0.3.63", optional = true }
  24. gloo-utils = { version = "0.1.6", optional = true }
  25. dioxus-ssr = { path = "../ssr", optional = true }
  26. lru = { version = "0.10.0", optional = true }
  27. radix_trie = { version = "0.2.1", optional = true }
  28. rustc-hash = "1.1.0"
  29. [features]
  30. default = ["web", "ssr"]
  31. ssr = ["dioxus-ssr", "lru", "radix_trie"]
  32. wasm_test = []
  33. serde = ["dep:serde", "gloo-utils/serde"]
  34. web = ["gloo", "web-sys", "wasm-bindgen", "gloo-utils", "js-sys"]
  35. [dev-dependencies]
  36. dioxus = { path = "../dioxus" }
  37. dioxus-ssr = { path = "../ssr" }
  38. criterion = "0.3"
  39. [[bench]]
  40. name = "incremental"
  41. harness = false
  42. [target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
  43. dioxus-desktop = { path = "../desktop" }
  44. [target.'cfg(target_family = "wasm")'.dev-dependencies]
  45. console_error_panic_hook = "0.1.7"
  46. dioxus-router = { path = ".", features = ["web"] }
  47. dioxus-web = { path= "../web" }
  48. gloo = "0.8.0"
  49. wasm-bindgen-test = "0.3.33"
  50. wasm-logger = "0.2.0"