Cargo.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. keywords = ["dom", "ui", "gui", "react", "ssr", "fullstack"]
  10. [dependencies]
  11. # server functions
  12. server_fn = { git = "https://github.com/leptos-rs/leptos", rev = "15a4e54435eb5a539afb75891292bcccd2cc8e85", default-features = false, features = ["stable"] }
  13. dioxus_server_macro = { path = "server-macro" }
  14. # warp
  15. warp = { version = "0.3.3", optional = true }
  16. http-body = { version = "0.4.5", optional = true }
  17. # axum
  18. axum = { version = "0.6.1", features = ["ws"], optional = true }
  19. tower-http = { version = "0.4.0", optional = true, features = ["fs"] }
  20. axum-macros = "0.3.7"
  21. # salvo
  22. salvo = { version = "0.37.7", optional = true, features = ["serve-static", "ws"] }
  23. serde = "1.0.159"
  24. # Dioxus + SSR
  25. dioxus-core = { workspace = true }
  26. dioxus-ssr = { workspace = true, optional = true }
  27. hyper = { version = "0.14.25", optional = true }
  28. http = { version = "0.2.9", optional = true }
  29. log = { workspace = true }
  30. once_cell = "1.17.1"
  31. thiserror = "1.0.40"
  32. tokio = { workspace = true, features = ["full"], optional = true }
  33. object-pool = "0.5.4"
  34. anymap = "0.12.1"
  35. serde_json = { version = "1.0.95", optional = true }
  36. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  37. futures-util = { workspace = true, optional = true }
  38. postcard = { version = "1.0.4", features = ["use-std"] }
  39. yazi = "0.1.5"
  40. base64 = "0.21.0"
  41. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  42. dioxus-hot-reload = { workspace = true }
  43. [target.'cfg(target_arch = "wasm32")'.dependencies]
  44. web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  45. [features]
  46. default = ["hot-reload", "default-tls"]
  47. hot-reload = ["serde_json", "tokio-stream", "futures-util"]
  48. warp = ["dep:warp", "http-body", "ssr"]
  49. axum = ["dep:axum", "tower-http", "ssr"]
  50. salvo = ["dep:salvo", "ssr"]
  51. ssr = ["server_fn/ssr", "tokio", "dioxus-ssr", "hyper", "http"]
  52. default-tls = ["server_fn/default-tls"]
  53. rustls = ["server_fn/rustls"]