1
0

Cargo.toml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [package]
  2. name = "dioxus-fullstack"
  3. authors = ["Jonathan Kelley, Evan Almloff"]
  4. version = "0.3.0"
  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 = ["dom", "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. log = { workspace = true }
  39. once_cell = "1.17.1"
  40. thiserror = { workspace = true }
  41. tokio = { workspace = true, features = ["full"], optional = true }
  42. tokio-util = { version = "0.7.8", features = ["rt"], optional = true }
  43. object-pool = "0.5.4"
  44. anymap = "0.12.1"
  45. serde_json = { version = "1.0.95", optional = true }
  46. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  47. futures-util = { workspace = true, optional = true }
  48. postcard = { version = "1.0.4", features = ["use-std"] }
  49. base64 = "0.21.0"
  50. pin-project = "1.1.2"
  51. async-trait = "0.1.71"
  52. bytes = "1.4.0"
  53. tower-layer = "0.3.2"
  54. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  55. dioxus-hot-reload = { workspace = true }
  56. [target.'cfg(target_arch = "wasm32")'.dependencies]
  57. web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  58. [features]
  59. default = ["hot-reload", "default-tls"]
  60. router = ["dioxus-router"]
  61. hot-reload = ["serde_json", "futures-util"]
  62. web = ["dioxus-web"]
  63. desktop = ["dioxus-desktop"]
  64. warp = ["dep:warp", "ssr"]
  65. axum = ["dep:axum", "tower-http", "ssr"]
  66. salvo = ["dep:salvo", "ssr"]
  67. ssr = ["server_fn/ssr", "tokio", "tokio-util", "dioxus-ssr", "tower", "hyper", "http", "http-body", "dioxus-router/ssr", "tokio-stream"]
  68. default-tls = ["server_fn/default-tls"]
  69. rustls = ["server_fn/rustls"]
  70. [dev-dependencies]
  71. dioxus-fullstack = { path = ".", features = ["router"] }