Cargo Features

[dependencies]
server_fn = { version = "0.7.0-rc2", default-features = false, features = ["axum-no-default", "form-redirects", "actix", "axum", "browser", "json", "serde-lite", "multipart", "url", "cbor", "rkyv", "msgpack", "postcard", "default-tls", "rustls", "reqwest", "ssr", "generic"] }
default = json

The json feature is set by default whenever server_fn is added without default-features = false somewhere in the dependency tree.

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 and send_wrapper

actix-web:

servers
actix

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

axum = axum-no-default

Enables 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

json default
serde-lite

Enables serde-lite

multipart = browser

Enables multer

url

Enables serde_qs

input encodings

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

reqwest

Enables reqwest

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