Cargo.toml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. [package]
  2. name = "dioxus-fullstack"
  3. authors = ["Jonathan Kelley, Evan Almloff"]
  4. version = { workspace = true }
  5. edition = "2021"
  6. description = "Fullstack Dioxus Utilities"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com"
  10. keywords = ["ui", "gui", "react", "ssr", "fullstack"]
  11. [dependencies]
  12. # server functions
  13. server_fn = { version = "0.4.6", default-features = false }
  14. dioxus_server_macro = { workspace = true }
  15. # warp
  16. warp = { version = "0.3.5", features = ["compression-gzip"], optional = true }
  17. http-body = { version = "0.4.5", optional = true }
  18. http-body-util = "0.1.0-rc.2"
  19. # axum
  20. axum = { version = "0.6.1", features = ["ws", "macros"], optional = true }
  21. tower-http = { version = "0.4.0", optional = true, features = ["fs", "compression-gzip"] }
  22. tower = { version = "0.4.13", features = ["util"], optional = true }
  23. axum-macros = "0.3.7"
  24. # salvo
  25. salvo = { version = "0.46.0", optional = true, features = ["serve-static", "websocket", "compression"] }
  26. serde = "1.0.159"
  27. # Dioxus + SSR
  28. dioxus = { workspace = true }
  29. dioxus-ssr = { workspace = true, optional = true }
  30. hyper = { version = "0.14.25", optional = true }
  31. http = { version = "0.2.9", optional = true }
  32. # Web Integration
  33. dioxus-web = { workspace = true, features = ["hydrate"], optional = true }
  34. # Desktop Integration
  35. dioxus-desktop = { workspace = true, optional = true }
  36. # Router Integration
  37. dioxus-router = { workspace = true, optional = true }
  38. tracing = { workspace = true }
  39. tracing-futures = { workspace = true }
  40. once_cell = "1.17.1"
  41. thiserror = { workspace = true }
  42. tokio = { workspace = true, features = ["full"], optional = true }
  43. tokio-util = { version = "0.7.8", features = ["rt"], optional = true }
  44. object-pool = "0.5.4"
  45. anymap = "0.12.1"
  46. serde_json = { version = "1.0.95", optional = true }
  47. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  48. futures-util = { workspace = true, optional = true }
  49. postcard = { version = "1.0.4", features = ["use-std"] }
  50. base64 = "0.21.0"
  51. pin-project = "1.1.2"
  52. async-trait = "0.1.71"
  53. bytes = "1.4.0"
  54. tower-layer = "0.3.2"
  55. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  56. dioxus-hot-reload = { workspace = true }
  57. [target.'cfg(target_arch = "wasm32")'.dependencies]
  58. web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  59. [features]
  60. default = ["hot-reload", "default-tls"]
  61. router = ["dioxus-router"]
  62. hot-reload = ["serde_json", "futures-util"]
  63. web = ["dioxus-web"]
  64. desktop = ["dioxus-desktop"]
  65. warp = ["dep:warp", "ssr"]
  66. axum = ["dep:axum", "tower-http", "ssr"]
  67. salvo = ["dep:salvo", "ssr"]
  68. ssr = ["server_fn/ssr", "dioxus_server_macro/ssr", "tokio", "tokio-util", "dioxus-ssr", "tower", "hyper", "http", "http-body", "dioxus-router/ssr", "tokio-stream"]
  69. default-tls = ["server_fn/default-tls"]
  70. rustls = ["server_fn/rustls"]
  71. [dev-dependencies]
  72. dioxus-fullstack = { path = ".", features = ["router"] }