Cargo Features

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

These default features are set whenever server_fn is added without default-features = false somewhere in the dependency tree.

axum-no-default axum? = 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 ^0.12

input encodings

cbor default

Enables ciborium

rkyv

Enables rkyv

msgpack

Enables rmp-serde

default-tls

Enables default-tls of optional reqwest ^0.11

reqwest client

rustls

Enables rustls-tls of optional reqwest ^0.11

reqwest

Enables reqwest ^0.11

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

ssr actix? axum-no-default? = inventory

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