Cargo Features

[dependencies]
axum-extra = { version = "0.9.3", default-features = false, features = ["async-read-body", "cookie", "cookie-signed", "cookie-key-expansion", "erased-json", "form", "json-deserializer", "json-lines", "multipart", "protobuf", "query", "tracing", "typed-header", "typed-routing", "cookie-private"] }
default = tracing

The tracing feature is set by default whenever axum-extra is added without default-features = false somewhere in the dependency tree.

async-read-body

Enables tokio, io of tokio-util

Affects async_read_body::AsyncReadBody

Enables cookie

Affects extract::cookie

Enables signed of optional cookie

Enables key-expansion of optional cookie

erased-json

Enables serde_json

form

Enables serde_html_form

Affects form::Form, form::FormRejection

json-deserializer

Enables serde_json and serde_path_to_error

json-lines

Enables serde_json and tokio, io-util of tokio-stream, io of tokio-util

Affects axum-extra::json_lines

multipart

Enables multer

Affects extract::multipart

protobuf

Enables prost

Affects axum-extra::protobuf

query

Enables serde_html_form

Affects query::QueryRejection, query::OptionalQueryRejection

tracing default

Enables tracing, tracing of axum-core

typed-header

Enables headers

Affects axum-extra::typed_header, typed_header::TypedHeader, typed_header::TypedHeaderRejection, typed_header::TypedHeaderRejectionReason

typed-routing

Enables axum-macros, form_urlencoded, percent-encoding, and serde_html_form

axum-macros:

optional dependencies

Affects routing::RouterExt.typed_get, routing::RouterExt.typed_delete, routing::RouterExt.typed_head, routing::RouterExt.typed_options, routing::RouterExt.typed_patch, routing::RouterExt.typed_post, routing::RouterExt.typed_put, routing::RouterExt.typed_trace

Enables private of optional cookie