Cargo.toml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.6.5", features = ["json", "url", "browser"], default-features = false }
  15. dioxus_server_macro = { workspace = true }
  16. # axum
  17. axum = { workspace = true, features = ["ws", "macros"], optional = true }
  18. tower-http = { workspace = true, optional = true, features = ["fs"] }
  19. async-compression = { version = "0.4.6", features = ["gzip", "tokio"], optional = true }
  20. dioxus-lib = { workspace = true }
  21. # Dioxus + SSR
  22. dioxus-ssr = { workspace = true, optional = true }
  23. hyper = { workspace = true, optional = true }
  24. http = { workspace = true, optional = true }
  25. # Web Integration
  26. dioxus-web = { workspace = true, features = ["hydrate"], optional = true }
  27. # Desktop Integration
  28. dioxus-desktop = { workspace = true, optional = true }
  29. # Mobile Integration
  30. dioxus-mobile = { workspace = true, optional = true }
  31. tracing = { workspace = true }
  32. tracing-futures = { workspace = true, optional = true }
  33. once_cell = "1.17.1"
  34. tokio-util = { version = "0.7.8", features = ["rt"], optional = true }
  35. anymap = { version = "0.12.1", optional = true }
  36. serde = "1.0.159"
  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 }
  40. ciborium = "0.2.1"
  41. base64 = "0.21.0"
  42. pin-project = { version = "1.1.2", optional = true }
  43. thiserror = { workspace = true, optional = true }
  44. async-trait = "0.1.71"
  45. bytes = "1.4.0"
  46. tower = { workspace = true, features = ["util"], optional = true }
  47. tower-layer = { version = "0.3.2", optional = true }
  48. web-sys = { version = "0.3.61", optional = true, features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  49. dioxus-cli-config = { workspace = true, features = ["read-config"], optional = true }
  50. [target.'cfg(target_arch = "wasm32")'.dependencies]
  51. tokio = { workspace = true, features = ["rt", "sync"], optional = true }
  52. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  53. dioxus-hot-reload = { workspace = true }
  54. tokio = { workspace = true, features = ["rt", "sync", "rt-multi-thread"], optional = true }
  55. [features]
  56. default = ["hot-reload"]
  57. hot-reload = ["serde_json"]
  58. web = ["dioxus-web", "web-sys"]
  59. desktop = ["dioxus-desktop"]
  60. mobile = ["dioxus-mobile"]
  61. default-tls = ["server_fn/default-tls"]
  62. rustls = ["server_fn/rustls"]
  63. axum = ["dep:axum", "tower-http", "server", "server_fn/axum", "dioxus_server_macro/axum", "async-compression"]
  64. server = [
  65. "server_fn/ssr",
  66. "dioxus_server_macro/server",
  67. "tokio",
  68. "tokio-util",
  69. "tokio-stream",
  70. "dioxus-ssr",
  71. "dioxus-ssr/incremental",
  72. "tower",
  73. "hyper",
  74. "http",
  75. "tower-layer",
  76. "anymap",
  77. "tracing-futures",
  78. "pin-project",
  79. "thiserror",
  80. "dioxus-cli-config"
  81. ]