Cargo.toml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. resolver = "2"
  12. [dependencies]
  13. # server functions
  14. server_fn = { version = "0.5.2", default-features = false }
  15. dioxus_server_macro = { workspace = true }
  16. # warp
  17. warp = { version = "0.3.5", features = ["compression-gzip"], optional = true }
  18. # axum
  19. axum = { version = "0.6.1", features = ["ws", "macros"], default-features = false, optional = true }
  20. tower-http = { version = "0.4.0", optional = true, features = ["fs", "compression-gzip"] }
  21. # salvo
  22. salvo = { version = "0.63.0", optional = true, features = ["serve-static", "websocket", "compression"] }
  23. http-body-util = { version = "0.1.0-rc.2", optional = true }
  24. dioxus-lib = { workspace = true }
  25. # Dioxus + SSR
  26. dioxus-ssr = { workspace = true, optional = true }
  27. hyper = { version = "0.14.25", optional = true }
  28. http = { version = "0.2.9", optional = true }
  29. # Web Integration
  30. dioxus-web = { workspace = true, features = ["hydrate"], optional = true }
  31. # Desktop Integration
  32. dioxus-desktop = { workspace = true, optional = true }
  33. tracing = { workspace = true }
  34. tracing-futures = { workspace = true, optional = true }
  35. once_cell = "1.17.1"
  36. tokio = { workspace = true, features = ["rt", "sync", "rt-multi-thread"], optional = true }
  37. tokio-util = { version = "0.7.8", features = ["rt"], optional = true }
  38. anymap = { version = "0.12.1", optional = true }
  39. serde = "1.0.159"
  40. serde_json = { version = "1.0.95", optional = true }
  41. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  42. futures-util = { workspace = true, default-features = false, optional = true }
  43. ciborium = "0.2.1"
  44. base64 = "0.21.0"
  45. pin-project = { version = "1.1.2", optional = true }
  46. thiserror = { workspace = true, optional = true }
  47. async-trait = "0.1.71"
  48. bytes = "1.4.0"
  49. tower = { version = "0.4.13", features = ["util"], optional = true }
  50. tower-layer = { version = "0.3.2", optional = true }
  51. web-sys = { version = "0.3.61", optional = true, features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  52. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  53. dioxus-hot-reload = { workspace = true }
  54. [features]
  55. default = ["hot-reload"]
  56. hot-reload = ["serde_json", "futures-util"]
  57. web = ["dioxus-web", "web-sys"]
  58. desktop = ["dioxus-desktop"]
  59. warp = ["dep:warp", "ssr"]
  60. axum = ["dep:axum", "tower-http", "ssr"]
  61. salvo = ["dep:salvo", "ssr", "http-body-util"]
  62. ssr = ["server_fn/ssr", "dioxus_server_macro/ssr", "tokio", "tokio-util", "tokio-stream", "dioxus-ssr", "dioxus-ssr/incremental", "tower", "hyper", "http", "tower-layer", "anymap", "tracing-futures", "pin-project", "thiserror"]
  63. default-tls = ["server_fn/default-tls"]
  64. rustls = ["server_fn/rustls"]