1
0

Cargo.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [package]
  2. name = "dioxus-hot-reload"
  3. authors = ["Jonathan Kelley", "Evan Almloff"]
  4. version = { workspace = true }
  5. edition = "2021"
  6. license = "MIT OR Apache-2.0"
  7. repository = "https://github.com/DioxusLabs/dioxus/"
  8. homepage = "https://dioxuslabs.com/learn/0.4/migration/hot_reload"
  9. description = "Hot reloading utilities for Dioxus"
  10. keywords = ["dom", "ui", "gui", "react", "hot-reloading"]
  11. [dependencies]
  12. dioxus-rsx = { workspace = true }
  13. dioxus-rsx-hotreload = { workspace = true }
  14. dioxus-core = { workspace = true, features = ["serialize"] }
  15. dioxus-html = { workspace = true, optional = true }
  16. dioxus-signals = { workspace = true, optional = true }
  17. dioxus-cli-config = { workspace = true, optional = true, features = ["read-config"] }
  18. notify = { workspace = true, optional = true }
  19. chrono = { version = "0.4.24", default-features = false, features = ["clock"], optional = true }
  20. serde_json = "1.0.91"
  21. serde = { version = "1", features = ["derive"] }
  22. execute = { version = "0.2.11", optional = true }
  23. once_cell = { version = "1.17.0", optional = true }
  24. ignore = { version = "0.4.19", optional = true }
  25. # hot reloading serve
  26. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  27. futures-util = { workspace = true, features = ["async-await-macro"], optional = true }
  28. tokio = { workspace = true, features = ["sync", "rt-multi-thread"], optional = true }
  29. tracing = { workspace = true }
  30. warnings.workspace = true
  31. # use rustls on android
  32. [target.'cfg(target_os = "android")'.dependencies]
  33. tokio-tungstenite = { workspace = true, optional = true, features = ["rustls"] }
  34. # use native tls on other platforms
  35. [target.'cfg(not(target_os = "android"))'.dependencies]
  36. tokio-tungstenite = { workspace = true, optional = true, features = ["native-tls"] }
  37. [dev-dependencies]
  38. tokio = { workspace = true, features = ["full"] }
  39. [features]
  40. default = ["dioxus-html"]
  41. client = ["dep:dioxus-signals"]
  42. serve = ["dep:tokio-stream", "dep:futures-util", "dep:tokio", "dep:tokio-tungstenite", "dep:dioxus-cli-config"]
  43. [package.metadata.docs.rs]
  44. cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]