Cargo.toml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 = "15a4e54435eb5a539afb75891292bcccd2cc8e85", default-features = false, features = ["stable"] }
  15. dioxus_server_macro = { path = "server-macro" }
  16. # warp
  17. warp = { version = "0.3.3", optional = true }
  18. http-body = { version = "0.4.5", optional = true }
  19. # axum
  20. axum = { version = "0.6.1", features = ["ws", "macros"], optional = true }
  21. tower-http = { version = "0.4.0", optional = true, features = ["fs"] }
  22. axum-macros = "0.3.7"
  23. # salvo
  24. salvo = { version = "0.37.7", optional = true, features = ["serve-static", "ws"] }
  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 = "1.0.40"
  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. yazi = "0.1.5"
  44. base64 = "0.21.0"
  45. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  46. dioxus-hot-reload = { workspace = true }
  47. [target.'cfg(target_arch = "wasm32")'.dependencies]
  48. web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  49. [features]
  50. default = ["hot-reload", "default-tls"]
  51. router = ["dioxus-router"]
  52. hot-reload = ["serde_json", "futures-util"]
  53. warp = ["dep:warp", "http-body", "ssr"]
  54. axum = ["dep:axum", "tower-http", "ssr"]
  55. salvo = ["dep:salvo", "ssr"]
  56. ssr = ["server_fn/ssr", "tokio", "dioxus-ssr", "hyper", "http", "dioxus-router/ssr", "tokio-stream"]
  57. default-tls = ["server_fn/default-tls"]
  58. rustls = ["server_fn/rustls"]
  59. [dev-dependencies]
  60. dioxus-fullstack = { path = ".", features = ["router"] }