Skip to content

Commit a05920c

Browse files
silverlyrajplatte
authored andcommitted
Make it easier to visually scan for default features (#3550)
1 parent 6d5e6d5 commit a05920c

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

axum-extra/src/lib.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@
99
//!
1010
//! Name | Description | Default?
1111
//! ---|---|---
12-
//! `async-read-body` | Enables the [`AsyncReadBody`](crate::body::AsyncReadBody) body | No
13-
//! `attachment` | Enables the [`Attachment`](crate::response::Attachment) response | No
14-
//! `cached` | Enables the [`Cached`](crate::extract::Cached) extractor | No
15-
//! `cookie` | Enables the [`CookieJar`](crate::extract::CookieJar) extractor | No
16-
//! `cookie-private` | Enables the [`PrivateCookieJar`](crate::extract::PrivateCookieJar) extractor | No
17-
//! `cookie-signed` | Enables the [`SignedCookieJar`](crate::extract::SignedCookieJar) extractor | No
18-
//! `cookie-key-expansion` | Enables the [`Key::derive_from`](crate::extract::cookie::Key::derive_from) method | No
19-
//! `erased-json` | Enables the [`ErasedJson`](crate::response::ErasedJson) response | No
20-
//! `error-response` | Enables the [`InternalServerError`](crate::response::InternalServerError) response | No
21-
//! `form` | Enables the [`Form`](crate::extract::Form) extractor | No
22-
//! `handler` | Enables the [handler] utilities | No
23-
//! `json-deserializer` | Enables the [`JsonDeserializer`](crate::extract::JsonDeserializer) extractor | No
24-
//! `json-lines` | Enables the [`JsonLines`](crate::extract::JsonLines) extractor and response | No
25-
//! `middleware` | Enables the [middleware] utilities | No
26-
//! `multipart` | Enables the [`Multipart`](crate::extract::Multipart) extractor | No
27-
//! `optional-path` | Enables the [`OptionalPath`](crate::extract::OptionalPath) extractor | No
28-
//! `protobuf` | Enables the [`Protobuf`](crate::protobuf::Protobuf) extractor and response | No
29-
//! `query` | Enables the [`Query`](crate::extract::Query) extractor | No
30-
//! `routing` | Enables the [routing] utilities | No
31-
//! `tracing` | Log rejections from built-in extractors | Yes
32-
//! `typed-routing` | Enables the [`TypedPath`](crate::routing::TypedPath) routing utilities | No
33-
//! `typed-header` | Enables the [`TypedHeader`] extractor and response | No
34-
//! `file-stream` | Enables the [`FileStream`](crate::response::FileStream) response | No
35-
//! `with-rejection` | Enables the [`WithRejection`](crate::extract::WithRejection) extractor | No
12+
//! `async-read-body` | Enables the [`AsyncReadBody`](crate::body::AsyncReadBody) body |
13+
//! `attachment` | Enables the [`Attachment`](crate::response::Attachment) response |
14+
//! `cached` | Enables the [`Cached`](crate::extract::Cached) extractor |
15+
//! `cookie` | Enables the [`CookieJar`](crate::extract::CookieJar) extractor |
16+
//! `cookie-private` | Enables the [`PrivateCookieJar`](crate::extract::PrivateCookieJar) extractor |
17+
//! `cookie-signed` | Enables the [`SignedCookieJar`](crate::extract::SignedCookieJar) extractor |
18+
//! `cookie-key-expansion` | Enables the [`Key::derive_from`](crate::extract::cookie::Key::derive_from) method |
19+
//! `erased-json` | Enables the [`ErasedJson`](crate::response::ErasedJson) response |
20+
//! `error-response` | Enables the [`InternalServerError`](crate::response::InternalServerError) response |
21+
//! `form` | Enables the [`Form`](crate::extract::Form) extractor |
22+
//! `handler` | Enables the [handler] utilities |
23+
//! `json-deserializer` | Enables the [`JsonDeserializer`](crate::extract::JsonDeserializer) extractor |
24+
//! `json-lines` | Enables the [`JsonLines`](crate::extract::JsonLines) extractor and response |
25+
//! `middleware` | Enables the [middleware] utilities |
26+
//! `multipart` | Enables the [`Multipart`](crate::extract::Multipart) extractor |
27+
//! `optional-path` | Enables the [`OptionalPath`](crate::extract::OptionalPath) extractor |
28+
//! `protobuf` | Enables the [`Protobuf`](crate::protobuf::Protobuf) extractor and response |
29+
//! `query` | Enables the [`Query`](crate::extract::Query) extractor |
30+
//! `routing` | Enables the [routing] utilities |
31+
//! `tracing` | Log rejections from built-in extractors | <span role="img" aria-label="Default feature">✔</span>
32+
//! `typed-routing` | Enables the [`TypedPath`](crate::routing::TypedPath) routing utilities and the `routing` feature. |
33+
//! `typed-header` | Enables the [`TypedHeader`] extractor and response |
34+
//! `file-stream` | Enables the [`FileStream`](crate::response::FileStream) response |
35+
//! `with-rejection` | Enables the [`WithRejection`](crate::extract::WithRejection) extractor |
3636
//!
3737
//! [`axum`]: https://crates.io/crates/axum
3838

axum/src/lib.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -381,19 +381,19 @@
381381
//!
382382
//! Name | Description | Default?
383383
//! ---|---|---
384-
//! `http1` | Enables hyper's `http1` feature | Yes
385-
//! `http2` | Enables hyper's `http2` feature | No
386-
//! `json` | Enables the [`Json`] type and some similar convenience functionality | Yes
387-
//! `macros` | Enables optional utility macros | No
388-
//! `matched-path` | Enables capturing of every request's router path and the [`MatchedPath`] extractor | Yes
389-
//! `multipart` | Enables parsing `multipart/form-data` requests with [`Multipart`] | No
390-
//! `original-uri` | Enables capturing of every request's original URI and the [`OriginalUri`] extractor | Yes
391-
//! `tokio` | Enables `tokio` as a dependency and `axum::serve`, `SSE` and `extract::connect_info` types. | Yes
392-
//! `tower-log` | Enables `tower`'s `log` feature | Yes
393-
//! `tracing` | Log rejections from built-in extractors | Yes
394-
//! `ws` | Enables WebSockets support via [`extract::ws`] | No
395-
//! `form` | Enables the `Form` extractor | Yes
396-
//! `query` | Enables the `Query` extractor | Yes
384+
//! `http1` | Enables hyper's `http1` feature | <span role="img" aria-label="Default feature">✔</span>
385+
//! `http2` | Enables hyper's `http2` feature |
386+
//! `json` | Enables the [`Json`] type and some similar convenience functionality | <span role="img" aria-label="Default feature">✔</span>
387+
//! `macros` | Enables optional utility macros |
388+
//! `matched-path` | Enables capturing of every request's router path and the [`MatchedPath`] extractor | <span role="img" aria-label="Default feature">✔</span>
389+
//! `multipart` | Enables parsing `multipart/form-data` requests with [`Multipart`] |
390+
//! `original-uri` | Enables capturing of every request's original URI and the [`OriginalUri`] extractor | <span role="img" aria-label="Default feature">✔</span>
391+
//! `tokio` | Enables `tokio` as a dependency and `axum::serve`, `SSE` and `extract::connect_info` types. | <span role="img" aria-label="Default feature">✔</span>
392+
//! `tower-log` | Enables `tower`'s `log` feature | <span role="img" aria-label="Default feature">✔</span>
393+
//! `tracing` | Log rejections from built-in extractors | <span role="img" aria-label="Default feature">✔</span>
394+
//! `ws` | Enables WebSockets support via [`extract::ws`] |
395+
//! `form` | Enables the `Form` extractor | <span role="img" aria-label="Default feature">✔</span>
396+
//! `query` | Enables the `Query` extractor | <span role="img" aria-label="Default feature">✔</span>
397397
//!
398398
//! [`MatchedPath`]: crate::extract::MatchedPath
399399
//! [`Multipart`]: crate::extract::Multipart

0 commit comments

Comments
 (0)