Cargo.toml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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-util = { version = "0.7.8", features = ["rt"], optional = true }
  39. anymap = { version = "0.12.1", optional = true }
  40. serde = "1.0.159"
  41. serde_json = { version = "1.0.95", optional = true }
  42. tokio-stream = { version = "0.1.12", features = ["sync"], optional = true }
  43. futures-util = { workspace = true, default-features = false }
  44. ciborium = "0.2.1"
  45. base64 = "0.21.0"
  46. pin-project = { version = "1.1.2", optional = true }
  47. thiserror = { workspace = true, optional = true }
  48. async-trait = "0.1.71"
  49. bytes = "1.4.0"
  50. tower = { version = "0.4.13", features = ["util"], optional = true }
  51. tower-layer = { version = "0.3.2", optional = true }
  52. web-sys = { version = "0.3.61", optional = true, features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  53. dioxus-cli-config = { workspace = true, optional = true }
  54. [target.'cfg(target_arch = "wasm32")'.dependencies]
  55. tokio = { workspace = true, features = ["rt", "sync"], optional = true }
  56. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  57. dioxus-hot-reload = { workspace = true }
  58. tokio = { workspace = true, features = ["rt", "sync", "rt-multi-thread"], optional = true }
  59. [features]
  60. default = ["hot-reload"]
  61. hot-reload = ["serde_json"]
  62. web = ["dioxus-web", "web-sys"]
  63. desktop = ["dioxus-desktop"]
  64. mobile = ["dioxus-mobile"]
  65. warp = ["dep:warp", "server"]
  66. axum = ["dep:axum", "tower-http", "server"]
  67. salvo = ["dep:salvo", "server", "http-body-util"]
  68. 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"]
  69. default-tls = ["server_fn/default-tls"]
  70. rustls = ["server_fn/rustls"]
  71. # This feature enables some nightly flags that make it more clear what structs/methods are available in each feature
  72. nightly-doc = []