Cargo.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [package]
  2. name = "dioxus-liveview"
  3. version = { workspace = true }
  4. edition = "2021"
  5. repository = "https://github.com/DioxusLabs/dioxus/"
  6. homepage = "https://dioxuslabs.com/learn/0.4/getting_started/liveview"
  7. keywords = ["dom", "ui", "gui", "react", "liveview"]
  8. description = "Build server-side apps with Dioxus"
  9. authors = ["Jonathan Kelley", "Evan Almloff"]
  10. license = "MIT OR Apache-2.0"
  11. [dependencies]
  12. thiserror = { workspace = true }
  13. tracing = { workspace = true }
  14. slab = { workspace = true }
  15. futures-util = { workspace = true, default-features = false, features = [
  16. "sink",
  17. ] }
  18. futures-channel = { workspace = true }
  19. tokio = { workspace = true, features = ["time", "macros"] }
  20. tokio-stream = { version = "0.1.11", features = ["net"] }
  21. tokio-util = { version = "0.7.4", features = ["rt"] }
  22. serde = { version = "1.0.151", features = ["derive"] }
  23. serde_json = "1.0.91"
  24. dioxus-html = { workspace = true, features = ["serialize", "eval", "mounted"] }
  25. rustc-hash = { workspace = true }
  26. dioxus-core = { workspace = true, features = ["serialize"] }
  27. dioxus-interpreter-js = { workspace = true, features = ["binary-protocol"] }
  28. dioxus-hot-reload = { workspace = true, optional = true }
  29. # warp
  30. warp = { version = "0.3.3", optional = true }
  31. # axum
  32. axum = { version = "0.6.1", optional = true, features = ["ws"] }
  33. # salvo
  34. salvo = { version = "0.63.0", optional = true, features = ["websocket"] }
  35. once_cell = "1.17.1"
  36. async-trait = "0.1.71"
  37. # rocket
  38. rocket = { version = "0.5.0", optional = true }
  39. rocket_ws = { version = "0.1.0", optional = true }
  40. # actix is ... complicated?
  41. # actix-files = { version = "0.6.2", optional = true }
  42. # actix-web = { version = "4.2.1", optional = true }
  43. # actix-ws = { version = "0.2.5", optional = true }
  44. [dev-dependencies]
  45. pretty_env_logger = { version = "0.5.0" }
  46. tokio = { workspace = true, features = ["full"] }
  47. dioxus = { workspace = true }
  48. warp = "0.3.3"
  49. axum = { version = "0.6.1", features = ["ws"] }
  50. salvo = { version = "0.63.0", features = ["affix", "websocket"] }
  51. rocket = "0.5.0"
  52. rocket_ws = "0.1.0"
  53. tower = "0.4.13"
  54. [build-dependencies]
  55. dioxus-interpreter-js = { workspace = true, features = ["binary-protocol"] }
  56. minify-js = "0.5.6"
  57. [features]
  58. default = ["hot-reload"]
  59. # actix = ["actix-files", "actix-web", "actix-ws"]
  60. hot-reload = ["dioxus-hot-reload"]
  61. rocket = ["dep:rocket", "dep:rocket_ws"]
  62. [[example]]
  63. name = "axum"
  64. required-features = ["axum"]
  65. [[example]]
  66. name = "axum_stress"
  67. required-features = ["axum"]
  68. [[example]]
  69. name = "salvo"
  70. required-features = ["salvo"]
  71. [[example]]
  72. name = "warp"
  73. required-features = ["warp"]
  74. [[example]]
  75. name = "rocket"
  76. required-features = ["rocket"]