Cargo.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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"], 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-core = { 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. log = { workspace = true }
  32. once_cell = "1.17.1"
  33. thiserror = "1.0.40"
  34. tokio = { workspace = true, features = ["full"], optional = true }
  35. object-pool = "0.5.4"
  36. anymap = "0.12.1"
  37. serde_json = { version = "1.0.95", optional = true }
  38. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  39. futures-util = { workspace = true, optional = true }
  40. postcard = { version = "1.0.4", features = ["use-std"] }
  41. yazi = "0.1.5"
  42. base64 = "0.21.0"
  43. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  44. dioxus-hot-reload = { workspace = true }
  45. [target.'cfg(target_arch = "wasm32")'.dependencies]
  46. web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  47. [features]
  48. default = ["hot-reload", "default-tls"]
  49. hot-reload = ["serde_json", "tokio-stream", "futures-util"]
  50. warp = ["dep:warp", "http-body", "ssr"]
  51. axum = ["dep:axum", "tower-http", "ssr"]
  52. salvo = ["dep:salvo", "ssr"]
  53. ssr = ["server_fn/ssr", "tokio", "dioxus-ssr", "hyper", "http"]
  54. default-tls = ["server_fn/default-tls"]
  55. rustls = ["server_fn/rustls"]