Cargo Features

[dependencies]
dioxus-fullstack = { version = "0.5.2", default-features = false, features = ["hot-reload", "web", "desktop", "mobile", "default-tls", "rustls", "axum", "server"] }
default = hot-reload

The hot-reload feature is set by default whenever dioxus-fullstack is added without default-features = false somewhere in the dependency tree.

hot-reload default = serde_json

Affects axum_adapter::hot_reload_handler

web = dioxus-web, web-sys
desktop = dioxus-desktop
mobile = dioxus-mobile
default-tls

Enables default-tls of server_fn

server functions

rustls

Enables rustls of server_fn

axum = async-compression, server, tower-http

Enables axum, axum of dioxus_server_macro and server_fn

Affects server_context::Axum

server axum? = anymap, dioxus-cli-config, dioxus-ssr, http, hyper, pin-project, thiserror, tokio, tokio-stream, tokio-util, tower, tower-layer, tracing-futures

Enables server of dioxus_server_macro, ssr of server_fn and incremental of dioxus-ssr

Dioxus + SSR

Affects collection::ServerFnTraitObj, collection::ServerFnMiddleware, collection::ServerFunction, collection::DioxusServerFnRegistry, collection::ServerRegistrationFnError

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tower-http axum?
async-compression axum?
dioxus-ssr server?
hyper server?
http server?
dioxus-web web?

Enables dioxus-web

Web Integration

dioxus-desktop desktop?

Enables dioxus-desktop

Desktop Integration

dioxus-mobile mobile?

Enables dioxus-mobile

Mobile Integration

tracing-futures server?
tokio-util server?
anymap server?
serde_json hot-reload
tokio-stream server?
pin-project server?
thiserror server?
tower server?
tower-layer server?
web-sys web?
dioxus-cli-config server?
tokio not wasm32 wasm32 server?