297 Commits

Author SHA1 Message Date
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
7f5cea0e6b
Update and centralize the LICENSE file to the repo root (#3401) 2025-08-12 23:31:12 +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
fb64e72de9
Add #[must_use] to types and methods (#3395)
Co-authored-by: Theodore Bjernhed <fosseder@danwin1210.de>
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
Jonas Platte
d0aff24c85
Reorder some TOML sections (#3360) 2025-05-25 08:46:05 +02:00
David Mládek
64563fb94c Update axum-extra/CHANGELOG.md
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2025-05-01 10:35:11 +02:00
David Mládek
a9f3172e88 axum-extra: Remove unused feature 2025-05-01 10:35:11 +02:00
Jonas Platte
8762520da8
Release axum 0.8.4 2025-04-30 18:01:39 +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
b150ac028b
Release axum 0.8.3 and related crates 2025-03-28 11:14:58 +01: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
Jonas Platte
62470bd503
Bring back no-op async-stream feature for axum-extra (#3293) 2025-03-27 06:12:26 -04:00
Jonas Platte
3525a13459
Revert "Make status a const function in rejection handling" (#3287) 2025-03-27 08:31:19 +01: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
Jonas Platte
0cb686535a Lowercase axum in a few more places 2025-01-23 17:38:24 -05:00
Jonas Platte
5966849f14
Release axum 0.8.2 and related crates (#3188) 2025-01-21 14:12:53 +01:00
Jonas Platte
6df26a3be3
Fix broken intra-doc link (#3186) 2025-01-21 06:45:56 -05:00
Mohammed Alotaibi
e09cc59365
Make status a const function in rejection handling (#3168)
Signed-off-by: Awiteb <a@4rs.nl>
2025-01-11 18:50:32 +00:00
Jonas Platte
f84105ae8b
Dependency cleanup (#3145) 2025-01-05 09:34:14 +01:00
Jonas Platte
926543f207
Release axum v0.8.0 2025-01-01 11:08:20 +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
Tobias Bieniek
8def6782fb
Replace custom BoxCloneService struct with tower::util::BoxCloneSyncService (#3109) 2024-12-27 08:57:52 +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
12d7d9c03c
Fix documentation for the file-stream response (#3102)
Co-authored-by: Tobias Bieniek <tobias@bieniek.cloud>
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
Jonas Platte
c7d2a59e78
Add Scheme extractor to axum-extra changelog (#3097) 2024-12-24 17:03:40 +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
ab8d0088d0
Add changelog entry for tokio-tungstenite upgrade (#3089) 2024-12-19 22:50:04 +01:00
Jonas Platte
5cdd8a4f18
axum 0.8.0-rc.1 (#3073) 2024-12-17 23:47:42 +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