tottoto
dcbcf5c5fd
axum-extra: Make typed-routing feature enable routing feature ( #3514 )
2025-10-11 11:22:51 +02:00
David Mládek
6cea3eadee
Remove usage of the doc_auto_cfg feature ( #3505 )
2025-09-30 11:53:30 +02:00
David Mládek
cc11b5ad7d
axum-extra: gate rejection test behind feature ( #3493 )
2025-09-22 14:18:46 +02:00
tottoto
d184798937
axum-extra: Make axum optional dependency ( #3485 )
2025-09-20 22:50:56 +02:00
David Mládek
5c090dcb3e
axum-extra: make option_layer guarantee that the output body is axum::body::Body
2025-09-14 19:50:04 +02:00
Jonas Platte
4ab8df5e42
Switch serde dependency to serde_core ( #3477 )
2025-09-14 08:49:07 +02:00
Joel Uckelman
5d5ba01be9
Add axum_extra::extract::Query::try_from_uri ( #3460 )
...
`axum::extract::Query` has a try_from_uri, which is useful for testing. This adds the same function to `axum_extra::extract::Query`.
2025-09-08 10:18:31 +02:00
Kenny Lau
64ae48347e
Fix typo in file_stream error message ( #3459 )
2025-09-07 12:49:22 +02:00
Poliorcetics
9ec85d6970
fix(axum-extra): don't require S generic param when using FileStream::from_path() ( #3437 )
2025-08-17 07:14:07 +02:00
Theodore Bjernhed
6bc0717b06
Improve value and reference passing efficiency ( #3406 )
2025-07-11 05:38:45 +02:00
Theodore Bjernhed
1b157a461e
Enable and fix control flow related clippy lints
2025-07-09 18:48:28 +00:00
Theodore Bjernhed and Theodore Bjernhed
fb64e72de9
Add #[must_use] to types and methods ( #3395 )
...
Co-authored-by: Theodore Bjernhed <[email protected] >
2025-07-05 19:07:24 +02:00
Theodore Bjernhed
0f255c3c4c
style: use Self to avoid unnecessary repetition ( #3396 )
2025-07-04 21:10:01 +00:00
Daniel
769e4066b1
Implement the OptionalFromRequestParts trait for the Host extractor ( #3177 )
2025-05-25 21:13:01 +02:00
Paolo Barbolini
869ba86e51
Reduce dependency on futures-util ( #3358 )
2025-05-25 09:39:35 +02:00
Jake
7b04b174b9
axum-extra: Pre-allocate right sized buffer when encoding protobuf response ( #3325 )
2025-04-26 09:37:32 +02:00
Denis
6bf1fcbb29
Fix recursive call leading to stack overflow when tracing level filter is TRACE ( #3312 )
2025-04-24 13:03:50 +02:00
Jonas Platte
5429ed9bd5
Fix new clippy lints ( #3304 )
2025-04-03 23:22:19 +02:00
Jonas Platte
2f2bb99550
Run into_parts eagerly in more places
2025-03-28 09:35:21 +01:00
Tomaz Canabrava
ee4727b865
Add macro to compile time check if a path is valid ( #3288 )
2025-03-27 19:54:49 +00:00
yjh
da3539cb0e
perf: do not convert to Bytes first in protobuf extractor ( #3241 )
2025-02-28 14:31:41 +01:00
co63oc
f9ba7776d9
Fix
2025-02-28 07:48:26 +01:00
Tobias Bieniek
f8f3a030b3
Update more hardcoded docs.rs URLs ( #3125 )
2024-12-27 23:37:28 +01:00
Tobias Bieniek
bb5cf4ce5a
axum-extra/protobuf: Use rejection macros for ProtobufRejection ( #3124 )
2024-12-27 23:37:06 +01:00
Tobias Bieniek
e58b166f0e
axum-extra/multipart: Use rejection macros for MultipartRejection ( #3123 )
2024-12-27 23:36:21 +01:00
Tobias Bieniek
5f82540cc1
axum-extra/query: Use rejection macros for QueryRejection ( #3122 )
2024-12-27 23:02:41 +01:00
Tobias Bieniek
28d8d9b747
Refactor TestClient usage ( #3121 )
2024-12-27 18:24:50 +01:00
Tobias Bieniek
09841ff895
axum-extra/form: Add FailedToDeserializeFormBody rejection variant ( #3119 )
2024-12-27 12:21:38 +01:00
Tobias Bieniek
ed4d560054
axum-extra/form: Use rejection macros for FormRejection ( #3111 )
2024-12-27 10:02:07 +01:00
Tobias Bieniek
8e78a37660
axum-extra/scheme: Use rejection macros for SchemeMissing rejection ( #3113 )
2024-12-27 10:01:59 +01:00
htrefil
0b06f0c54e
Allow querying of HTTP status codes for query and form rejections ( #2781 )
2024-12-26 12:21:24 +01:00
Bismit Panda and Tobias Bieniek
12d7d9c03c
Fix documentation for the file-stream response ( #3102 )
...
Co-authored-by: Tobias Bieniek <[email protected] >
2024-12-26 09:04:03 +00:00
Jonas Platte
3bb12abc8d
Remove OptionalFromRequestParts impl for Query ( #3088 )
2024-12-25 18:56:48 +01:00
Tobias Bieniek
9cd5cc4fc1
Query/Form: Use serde_path_to_error to report fields that failed to parse ( #3081 )
2024-12-20 11:42:56 +01:00
Jonas Platte
ec75ee3827
Add a separate trait for optional extractors ( #2475 )
2024-12-10 02:54:59 +00:00
YanHeDoki
7c871e9591
Add FileStream response to axum-extra ( #3047 )
2024-12-04 12:33:07 +00:00
Jonas Platte
99c07e4d86
Enable and fix warnings from clippy::uninlined_format_args ( #3063 )
2024-12-03 22:27:14 +01:00
Jonas Platte
f6379558e6
Clean up axum-extra'a new error-response feature ( #3057 )
2024-12-01 11:44:43 +01:00
Jonas Platte
d84136e1e4
Centralize lint configuration ( #3055 )
2024-11-30 16:53:48 +01:00
Claas
2eaed0badc
Fix PrivateCookieJar documentation example comments ( #3053 )
2024-11-28 23:00:14 +00:00
Jonas Platte
c7aa6454e7
Fix new clippy lints ( #3054 )
2024-11-28 23:53:20 +01:00
joeydewaal
69a89c00e7
Add Attachment type in features documentation ( #3046 )
2024-11-24 01:02:05 +01:00
Leon Lux and Jonas Platte
dc5c202c5f
Add shorthand way to return non-IntoResponse errors ( #3010 )
...
Co-authored-by: Jonas Platte <[email protected] >
2024-11-17 22:12:45 +01:00
Tobias Bieniek
f09e7fba9d
axum-extra: Add links to features table ( #3030 )
2024-11-16 11:14:51 +01:00
bf0c14b8af
Ensure we include the port when parsing authority ( #2242 )
...
Co-authored-by: Jonas Platte <[email protected] >
Co-authored-by: Yann Simon <[email protected] >
2024-11-14 22:05:58 +01:00
Jonas Platte
56c709b33d
Some documentation fixes ( #3027 )
2024-11-14 21:12:16 +01:00
Vegard Sandengen and David Mládek
59a2960e42
Add ErrorKind::DeserializeError to specialize ErrorKind::Message (extract::path::ErrorKind) ( #2720 )
...
This commit introduces another `extract::path::ErrorKind` variant that captures the
serde error nominally captured through the `serde::de::Error` trait impl on `PathDeserializeError`.
We augment the deserialization error with the captured (key, value), allowing `extract::Path`, and wrapping
extractors, to gain programmatic access to the key name, and attempted deserialized value.
The `PathDeserializationError::custom` is used two places in addition to capture the deserialization error.
These usages should still be unaffected.
Co-authored-by: David Mládek <[email protected] >
2024-11-11 16:56:25 +00:00
Benjamin Sparks
ffeb4f9407
Add Scheme extractor ( #2507 )
2024-10-19 22:04:24 +00:00
Erin and David Mládek
114369418d
Fix TSR redirecting to top-level inside nested Router ( #2993 )
...
Co-authored-by: David Mládek <[email protected] >
2024-10-17 16:43:14 +02:00
David Mládek
65ad603701
chore: fix new clippy lint ( #2994 )
2024-10-17 12:27:47 +02:00