mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-28 21:40:55 +00:00
Document all cargo features (#1079)
This commit is contained in:
parent
b6a2d9dba7
commit
453202b490
@ -1,5 +1,24 @@
|
||||
//! Extra utilities for [`axum`].
|
||||
//!
|
||||
//! # Feature flags
|
||||
//!
|
||||
//! axum-extra uses a set of [feature flags] to reduce the amount of compiled and
|
||||
//! optional dependencies.
|
||||
//!
|
||||
//! The following optional features are available:
|
||||
//!
|
||||
//! Name | Description | Default?
|
||||
//! ---|---|---
|
||||
//! `async-read-body` | Enables the `AsyncReadBody` body | No
|
||||
//! `cookie` | Enables the `CookieJar` extractor | No
|
||||
//! `cookie-private` | Enables the `PrivateCookieJar` extractor | No
|
||||
//! `cookie-signed` | Enables the `SignedCookieJar` extractor | No
|
||||
//! `erased-json` | Enables the `ErasedJson` response | No
|
||||
//! `form` | Enables the `Form` extractor | No
|
||||
//! `query` | Enables the `Query` extractor | No
|
||||
//! `spa` | Enables the `Spa` router | No
|
||||
//! `typed-routing` | Enables the `TypedPath` routing utilities | No
|
||||
//!
|
||||
//! [`axum`]: https://crates.io/crates/axum
|
||||
|
||||
#![warn(
|
||||
|
@ -315,6 +315,8 @@
|
||||
//! `original-uri` | Enables capturing of every request's original URI and the [`OriginalUri`] extractor | Yes
|
||||
//! `tower-log` | Enables `tower`'s `log` feature | Yes
|
||||
//! `ws` | Enables WebSockets support via [`extract::ws`] | No
|
||||
//! `form` | Enables the `Form` extractor | Yes
|
||||
//! `query` | Enables the `Query` extractor | Yes
|
||||
//!
|
||||
//! [`TypedHeader`]: crate::extract::TypedHeader
|
||||
//! [`MatchedPath`]: crate::extract::MatchedPath
|
||||
|
Loading…
x
Reference in New Issue
Block a user