Cargo Features

ServerFn has no features set by default.

[dependencies]
server_fn = { version = "0.8.0-beta", features = ["axum-no-default", "form-redirects", "actix", "axum", "browser", "serde-lite", "multipart", "cbor", "rkyv", "msgpack", "postcard", "default-tls", "rustls", "reqwest", "ssr", "generic"] }
axum-no-default axum? = generic, ssr

Enables axum, http-body-util, hyper, tower, and tower-layer

Affects server_fn::axum, request::axum, response::http

form-redirects
actix = ssr

Enables actix-web, actix-ws, and send_wrapper

actix-web:

servers
actix

Affects server_fn::actix, request::actix, response::actix

axum = axum-no-default

Enables tokio, ws of axum

browser multipart?

Enables gloo-net, js-sys, send_wrapper, wasm-bindgen, wasm-bindgen-futures, wasm-streams, and web-sys

gloo-net:

client

Affects client::browser, request::browser, response::browser

serde-lite

Enables serde-lite

multipart = browser

Enables multer

cbor

Enables ciborium

rkyv

Enables rkyv

msgpack

Enables rmp-serde

postcard

Enables postcard

default-tls

Enables default-tls of optional reqwest

reqwest client

rustls

Enables rustls-tls of optional reqwest, rustls of optional tokio-tungstenite

reqwest

Enables reqwest, tokio, and tokio-tungstenite

Affects client::reqwest, request::reqwest, response::reqwest

ssr actix? axum-no-default? = inventory
generic axum-no-default?

Affects request::generic, response::generic

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.

inventory ssr?

Enables inventory

registration system