1
0

Cargo.toml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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", "ssr", "fullstack"]
  11. [dependencies]
  12. # server functions
  13. server_fn = { version = "0.5.2", default-features = false }
  14. dioxus_server_macro = { workspace = true }
  15. # warp
  16. warp = { version = "0.3.5", features = ["compression-gzip"], optional = true }
  17. # axum
  18. axum = { version = "0.6.1", features = ["ws", "macros"], default-features = false, optional = true }
  19. tower-http = { version = "0.4.0", optional = true, features = ["fs", "compression-gzip"] }
  20. # salvo
  21. salvo = { version = "0.63.0", optional = true, features = ["serve-static", "websocket", "compression"] }
  22. http-body-util = { version = "0.1.0-rc.2", optional = true }
  23. # Dioxus + SSR
  24. dioxus = { workspace = true }
  25. dioxus-ssr = { workspace = true, optional = true }
  26. hyper = { version = "0.14.25", optional = true }
  27. http = { version = "0.2.9", optional = true }
  28. # Web Integration
  29. dioxus-web = { workspace = true, features = ["hydrate"], optional = true }
  30. # Desktop Integration
  31. dioxus-desktop = { workspace = true, optional = true }
  32. # Router Integration
  33. dioxus-router = { workspace = true, optional = true }
  34. tracing = { workspace = true }
  35. tracing-futures = { workspace = true, optional = true }
  36. once_cell = "1.17.1"
  37. tokio = { workspace = true, features = ["rt", "sync", "rt-multi-thread"], optional = true }
  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, optional = true }
  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. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  53. dioxus-hot-reload = { workspace = true }
  54. [target.'cfg(target_arch = "wasm32")'.dependencies]
  55. web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] }
  56. [target.'cfg(any(target_os = "windows",target_os = "macos",target_os = "linux",target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
  57. # This is only for debug mode, and it appears mobile does not support some packages this uses
  58. manganis-cli-support = { workspace = true, features = ["webp", "html"], optional = true }
  59. [features]
  60. default = ["hot-reload"]
  61. router = ["dioxus-router"]
  62. hot-reload = ["serde_json", "futures-util"]
  63. web = ["dioxus-web"]
  64. desktop = ["dioxus-desktop"]
  65. warp = ["dep:warp", "ssr"]
  66. axum = ["dep:axum", "tower-http", "ssr"]
  67. salvo = ["dep:salvo", "ssr", "http-body-util"]
  68. ssr = ["server_fn/ssr", "dioxus_server_macro/ssr", "tokio", "tokio-util", "tokio-stream", "dioxus-ssr", "tower", "hyper", "http", "dioxus-router?/ssr", "tower-layer", "anymap", "tracing-futures", "pin-project", "thiserror"]
  69. default-tls = ["server_fn/default-tls"]
  70. rustls = ["server_fn/rustls"]
  71. collect-assets = ["manganis-cli-support"]