Cargo.toml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. # axum
  17. axum = { workspace = true, features = ["ws", "macros"], default-features = false, optional = true }
  18. tower-http = { workspace = true, optional = true, features = ["fs", "compression-gzip"] }
  19. dioxus-lib = { workspace = true }
  20. # Dioxus + SSR
  21. dioxus-ssr = { workspace = true, optional = true }
  22. hyper = { workspace = true, optional = true }
  23. http = { workspace = true, optional = true }
  24. # Web Integration
  25. dioxus-web = { workspace = true, features = ["hydrate"], optional = true }
  26. # Desktop Integration
  27. dioxus-desktop = { workspace = true, optional = true }
  28. # Mobile Integration
  29. dioxus-mobile = { workspace = true, optional = true }
  30. tracing = { workspace = true }
  31. tracing-futures = { workspace = true, optional = true }
  32. once_cell = "1.17.1"
  33. tokio = { workspace = true, features = ["rt", "sync", "rt-multi-thread"], optional = true }
  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, default-features = false, optional = 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, optional = true }
  50. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  51. dioxus-hot-reload = { workspace = true }
  52. [features]
  53. default = ["hot-reload"]
  54. hot-reload = ["serde_json", "futures-util"]
  55. web = ["dioxus-web", "web-sys"]
  56. desktop = ["dioxus-desktop"]
  57. mobile = ["dioxus-mobile"]
  58. default-tls = ["server_fn/default-tls"]
  59. rustls = ["server_fn/rustls"]
  60. axum = ["dep:axum", "tower-http", "server"]
  61. server = [
  62. "server_fn/ssr",
  63. "dioxus_server_macro/server",
  64. "tokio",
  65. "tokio-util",
  66. "tokio-stream",
  67. "dioxus-ssr",
  68. "dioxus-ssr/incremental",
  69. "tower",
  70. "hyper",
  71. "http",
  72. "tower-layer",
  73. "anymap",
  74. "tracing-futures",
  75. "pin-project",
  76. "thiserror",
  77. "dioxus-cli-config"
  78. ]