Cargo.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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, features = ["serde"] }
  13. dioxus-core = { workspace = true, features = ["serialize"] }
  14. dioxus-html = { workspace = true, optional = true }
  15. dioxus-signals = { workspace = true, optional = true }
  16. dioxus-cli-config = { workspace = true, optional = true, features = ["read-config"] }
  17. notify = { workspace = true, optional = true }
  18. chrono = { version = "0.4.24", default-features = false, features = ["clock"], optional = true }
  19. serde_json = "1.0.91"
  20. serde = { version = "1", features = ["derive"] }
  21. execute = { version = "0.2.11", optional = true }
  22. once_cell = { version = "1.17.0", optional = true }
  23. ignore = { version = "0.4.19", optional = true }
  24. # hot reloading serve
  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", "rt-multi-thread"], optional = true }
  28. tracing = { workspace = true }
  29. # use rustls on android
  30. [target.'cfg(target_os = "android")'.dependencies]
  31. tokio-tungstenite = { workspace = true, optional = true, features = ["rustls"] }
  32. # use native tls on other platforms
  33. [target.'cfg(not(target_os = "android"))'.dependencies]
  34. tokio-tungstenite = { workspace = true, optional = true, features = ["native-tls"] }
  35. [dev-dependencies]
  36. tokio = { workspace = true, features = ["full"] }
  37. [features]
  38. default = ["dioxus-html"]
  39. client = ["dep:dioxus-signals"]
  40. serve = ["dep:tokio-stream", "dep:futures-util", "dep:tokio", "dep:tokio-tungstenite", "dep:dioxus-cli-config"]
  41. [package.metadata.docs.rs]
  42. cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]