Cargo.toml 2.7 KB

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