Cargo.toml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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-core = { workspace = true, features = ["serialize"] }
  14. dioxus-html = { workspace = true, optional = true }
  15. interprocess = { workspace = true }
  16. notify = { version = "5.0.0", optional = true }
  17. chrono = { version = "0.4.24", default-features = false, features = ["clock"], optional = true }
  18. serde_json = "1.0.91"
  19. serde = { version = "1", features = ["derive"] }
  20. execute = { version = "0.2.11", optional = true }
  21. once_cell = { version = "1.17.0", optional = true }
  22. ignore = { version = "0.4.19", optional = true }
  23. # hot reloading serve
  24. axum = { workspace = true, features = ["ws"], optional = true }
  25. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  26. futures-util = { workspace = true, features = ["async-await-macro"], optional = true }
  27. tokio = { workspace = true, features = ["sync"], optional = true }
  28. tracing.workspace = true
  29. [dev-dependencies]
  30. tokio = { workspace = true, features = ["full"] }
  31. [features]
  32. default = ["dioxus-html"]
  33. custom_file_watcher = ["dep:ignore", "dep:chrono", "dep:notify", "dep:execute", "dep:once_cell", "dep:ignore"]
  34. file_watcher = ["custom_file_watcher", "dioxus-html/hot-reload-context", "dioxus-rsx/hot_reload"]
  35. serve = ["dep:axum", "dep:tokio-stream", "dep:futures-util", "dep:tokio", "file_watcher"]
  36. [package.metadata.docs.rs]
  37. cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]