Cargo.toml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. object-pool = "0.5.4"
  38. anymap = "0.12.1"
  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, optional = true }
  42. postcard = { version = "1.0.4", features = ["use-std"] }
  43. base64 = "0.21.0"
  44. pin-project = "1.1.2"
  45. async-trait = "0.1.71"
  46. bytes = "1.4.0"
  47. tower-layer = "0.3.2"
  48. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  49. dioxus-hot-reload = { workspace = true }
  50. [target.'cfg(target_arch = "wasm32")'.dependencies]
  51. web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  52. [features]
  53. default = ["hot-reload", "default-tls"]
  54. router = ["dioxus-router"]
  55. hot-reload = ["serde_json", "futures-util"]
  56. warp = ["dep:warp", "ssr"]
  57. axum = ["dep:axum", "tower-http", "ssr"]
  58. salvo = ["dep:salvo", "ssr"]
  59. ssr = ["server_fn/ssr", "tokio", "dioxus-ssr", "tower", "hyper", "http", "http-body", "dioxus-router/ssr", "tokio-stream"]
  60. default-tls = ["server_fn/default-tls"]
  61. rustls = ["server_fn/rustls"]
  62. [dev-dependencies]
  63. dioxus-fullstack = { path = ".", features = ["router"] }