Cargo.toml 2.9 KB

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