[package] name = "dioxus-fullstack" authors = ["Jonathan Kelley, Evan Almloff"] version = { workspace = true } edition = "2021" description = "Fullstack Dioxus Utilities" license = "MIT OR Apache-2.0" repository = "https://github.com/DioxusLabs/dioxus/" homepage = "https://dioxuslabs.com" keywords = ["ui", "gui", "react", "ssr", "fullstack"] [dependencies] # server functions server_fn = { version = "0.5.2", default-features = false } dioxus_server_macro = { workspace = true } # warp warp = { version = "0.3.5", features = ["compression-gzip"], optional = true } # axum axum = { version = "0.6.1", features = ["ws", "macros"], default-features = false, optional = true } tower-http = { version = "0.4.0", optional = true, features = ["fs", "compression-gzip"] } # salvo salvo = { version = "0.63.0", optional = true, features = ["serve-static", "websocket", "compression"] } http-body-util = { version = "0.1.0-rc.2", optional = true } dioxus-core = { workspace = true } # Dioxus + SSR dioxus-ssr = { workspace = true, optional = true } hyper = { version = "0.14.25", optional = true } http = { version = "0.2.9", optional = true } # Web Integration dioxus-web = { workspace = true, features = ["hydrate"], optional = true } # Desktop Integration dioxus-desktop = { workspace = true, optional = true } # Router Integration dioxus-router = { workspace = true, optional = true } tracing = { workspace = true } tracing-futures = { workspace = true, optional = true } once_cell = "1.17.1" tokio = { workspace = true, features = ["rt", "sync", "rt-multi-thread"], optional = true } tokio-util = { version = "0.7.8", features = ["rt"], optional = true } anymap = { version = "0.12.1", optional = true } serde = "1.0.159" serde_json = { version = "1.0.95", optional = true } tokio-stream = { version = "0.1.12", features = ["sync"], optional = true } futures-util = { workspace = true, default-features = false, optional = true } ciborium = "0.2.1" base64 = "0.21.0" pin-project = { version = "1.1.2", optional = true } thiserror = { workspace = true, optional = true } async-trait = "0.1.71" bytes = "1.4.0" tower = { version = "0.4.13", features = ["util"], optional = true } tower-layer = { version = "0.3.2", optional = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] dioxus-hot-reload = { workspace = true } [target.'cfg(target_arch = "wasm32")'.dependencies] web-sys = { version = "0.3.61", features = ["Window", "Document", "Element", "HtmlDocument", "Storage", "console"] } [features] default = ["hot-reload"] router = ["dioxus-router"] hot-reload = ["serde_json", "futures-util"] web = ["dioxus-web"] desktop = ["dioxus-desktop"] warp = ["dep:warp", "ssr"] axum = ["dep:axum", "tower-http", "ssr"] salvo = ["dep:salvo", "ssr", "http-body-util"] 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"] default-tls = ["server_fn/default-tls"] rustls = ["server_fn/rustls"]