Cargo Features

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

These default features are set 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

attachment

Enables tracing

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 default

Enables fastrand and multer

Affects extract::multipart, response::multiple

protobuf

Enables prost

Affects axum-extra::protobuf

query

Enables serde_html_form

Affects query::QueryRejection, query::OptionalQueryRejection

tracing default

Enables tracing of axum and 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