Cargo.toml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [package]
  2. name = "dioxus-server"
  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 = "671b1e4a8fff7a2e05bb621ef08e87be2b18ccae", 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. hyper = { version = "0.14.25", optional = true }
  23. axum-macros = "0.3.7"
  24. # salvo
  25. salvo = { version = "0.37.7", optional = true, features = ["serve-static", "ws"] }
  26. serde = "1.0.159"
  27. # Dioxus + SSR
  28. dioxus-core = { path = "../core", version = "^0.3.0" }
  29. dioxus-ssr = { path = "../ssr", version = "^0.3.0", optional = true }
  30. log = "0.4.17"
  31. once_cell = "1.17.1"
  32. thiserror = "1.0.40"
  33. tokio = { version = "1.27.0", features = ["full"], optional = true }
  34. object-pool = "0.5.4"
  35. anymap = "0.12.1"
  36. serde_json = { version = "1.0.95", optional = true }
  37. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  38. futures-util = { version = "0.3.28", optional = true }
  39. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  40. dioxus-hot-reload = { path = "../hot-reload" }
  41. [features]
  42. default = ["hot-reload"]
  43. hot-reload = ["serde_json", "tokio-stream", "futures-util"]
  44. warp = ["dep:warp", "http-body", "ssr"]
  45. axum = ["dep:axum", "tower-http", "hyper", "ssr"]
  46. salvo = ["dep:salvo", "hyper", "ssr"]
  47. ssr = ["server_fn/ssr", "tokio", "dioxus-ssr"]