Cargo.toml 2.7 KB

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