Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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"] }
  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. gloo-utils = { version = "0.1.6", optional = true, features = ["serde"] }
  24. [features]
  25. default = ["web"]
  26. wasm_test = []
  27. web = ["gloo", "web-sys", "wasm-bindgen", "gloo-utils"]
  28. [dev-dependencies]
  29. dioxus = { path = "../dioxus" }
  30. dioxus-ssr = { path = "../ssr" }
  31. [target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
  32. dioxus-desktop = { path = "../desktop" }
  33. [target.'cfg(target_family = "wasm")'.dev-dependencies]
  34. console_error_panic_hook = "0.1.7"
  35. dioxus-router = { path = ".", features = ["web"] }
  36. dioxus-web = { path= "../web" }
  37. gloo = "0.8.0"
  38. wasm-bindgen-test = "0.3.33"
  39. wasm-logger = "0.2.0"