Cargo.toml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [package]
  2. name = "dioxus-fullstack"
  3. authors = ["Jonathan Kelley, Evan Almloff"]
  4. version = { workspace = true }
  5. edition = "2021"
  6. description = "Fullstack Dioxus Utilities"
  7. license = "MIT OR Apache-2.0"
  8. repository = "https://github.com/DioxusLabs/dioxus/"
  9. homepage = "https://dioxuslabs.com"
  10. keywords = ["ui", "gui", "react", "server", "fullstack"]
  11. resolver = "2"
  12. [dependencies]
  13. # server functions
  14. server_fn = { version = "0.5.2", default-features = false }
  15. dioxus_server_macro = { workspace = true }
  16. # warp
  17. warp = { version = "0.3.5", features = ["compression-gzip"], optional = true }
  18. # axum
  19. axum = { version = "0.6.1", features = ["ws", "macros"], default-features = false, optional = true }
  20. tower-http = { version = "0.4.0", optional = true, features = ["fs", "compression-gzip"] }
  21. # salvo
  22. salvo = { version = "0.63.0", optional = true, features = ["serve-static", "websocket", "compression"] }
  23. http-body-util = { version = "0.1.0-rc.2", optional = true }
  24. dioxus-lib = { workspace = true }
  25. # Dioxus + SSR
  26. dioxus-ssr = { workspace = true, optional = true }
  27. hyper = { version = "0.14.25", optional = true }
  28. http = { version = "0.2.9", optional = true }
  29. # Web Integration
  30. dioxus-web = { workspace = true, features = ["hydrate"], optional = true }
  31. # Desktop Integration
  32. dioxus-desktop = { workspace = true, optional = true }
  33. # Mobile Integration
  34. dioxus-mobile = { workspace = true, optional = true }
  35. tracing = { workspace = true }
  36. tracing-futures = { workspace = true, optional = true }
  37. once_cell = "1.17.1"
  38. tokio = { workspace = true, features = ["rt", "sync", "rt-multi-thread"], optional = true }
  39. tokio-util = { version = "0.7.8", features = ["rt"], optional = true }
  40. anymap = { version = "0.12.1", optional = true }
  41. serde = "1.0.159"
  42. serde_json = { version = "1.0.95", optional = true }
  43. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  44. futures-util = { workspace = true, default-features = false, optional = true }
  45. ciborium = "0.2.1"
  46. base64 = "0.21.0"
  47. pin-project = { version = "1.1.2", optional = true }
  48. thiserror = { workspace = true, optional = true }
  49. async-trait = "0.1.71"
  50. bytes = "1.4.0"
  51. tower = { version = "0.4.13", features = ["util"], optional = true }
  52. tower-layer = { version = "0.3.2", optional = true }
  53. web-sys = { version = "0.3.61", optional = true, features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  54. dioxus-cli-config = { workspace = true, optional = true }
  55. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  56. dioxus-hot-reload = { workspace = true }
  57. [features]
  58. default = ["hot-reload"]
  59. hot-reload = ["serde_json", "futures-util"]
  60. web = ["dioxus-web", "web-sys"]
  61. desktop = ["dioxus-desktop"]
  62. mobile = ["dioxus-mobile"]
  63. warp = ["dep:warp", "server"]
  64. axum = ["dep:axum", "tower-http", "server"]
  65. salvo = ["dep:salvo", "server", "http-body-util"]
  66. server = ["server_fn/ssr", "dioxus_server_macro/server", "tokio", "tokio-util", "tokio-stream", "dioxus-ssr", "dioxus-ssr/incremental", "tower", "hyper", "http", "tower-layer", "anymap", "tracing-futures", "pin-project", "thiserror", "dioxus-cli-config"]
  67. default-tls = ["server_fn/default-tls"]
  68. rustls = ["server_fn/rustls"]
  69. # This feature enables some nightly flags that make it more clear what structs/methods are available in each feature
  70. nightly-doc = []