Commit Graph
1648 Commits
Author SHA1 Message Date
David Mládek d108c50ce7 axum: add ResponseAxumBodyLayer for mapping response body to axum::body::Body 2025-09-28 19:28:47 +02:00
Jonas Platte 16534439f5 Switch serde dependency to serde_core (#3477) 2025-09-28 19:28:32 +02:00
Niclas Klugmann c40f739cdf Clarify that AddExtension is not the actual Layer (#3463) 2025-09-28 19:25:37 +02:00
Joel Uckelman aa8f75111a 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-28 19:25:25 +02:00
reivilibre b8ae30747c Document type parameter T on Handler (#3435)
Signed-off-by: Olivier 'reivilibre <[email protected]>
2025-09-28 19:24:04 +02:00
Glen De Cauwsemaecker eb3c5418ef Support custom (binary) data to be written into SSE Event (#3425) 2025-09-28 19:24:00 +02:00
Glen De Cauwsemaecker d88b39897b Fix ci failures (#3432) 2025-09-28 19:22:35 +02:00
Jan Runge f736e9f24e Extractors doc: correct linked example section (#3349) 2025-09-28 19:22:10 +02:00
Jonas Platte 25549f0ba2 Update minimum Rust version to 1.78 (#3412) 2025-09-28 19:22:01 +02:00
Glen De Cauwsemaecker c1ff1539e3 sse: Add space between duration and : (#3403) 2025-09-28 19:20:22 +02:00
Theodore BjernhedandTheodore Bjernhed 384f393857 Add #[must_use] to types and methods (#3395)
Co-authored-by: Theodore Bjernhed <[email protected]>
2025-09-28 19:19:54 +02:00
tottoto 3a18eb6108 Update tokio-tungstenite to 0.27 (#3398) 2025-09-28 19:19:33 +02:00
Theodore Bjernhed 62586fa492 style: Reorder macro-generated items to fix lints (#3392) 2025-09-28 19:18:47 +02:00
zeon d0d8088be1 New redirect inspection (#3377) 2025-09-28 19:18:22 +02:00
Sabrina Jewson fc50f462e6 Add DefaultBodyLimit::apply (#3368) 2025-09-28 19:17:34 +02:00
Jake McGinty f32223b2e9 Implement OptionalFromRequest for Multipart (#3220) 2025-09-28 19:17:02 +02:00
Daniel 756bf0037f Implement the OptionalFromRequestParts trait for the Host extractor (#3177) 2025-09-28 19:16:54 +02:00
Jonas Platte 01ecea0e33 Make clippy happy (#3350) 2025-09-28 19:15:42 +02:00
Nano abe98474e1 Make SSE less dependent on tokio (#3154) 2025-09-28 19:12:15 +02:00
Jonas Platte 8762520da8 Release axum 0.8.4 axum-v0.8.4 2025-04-30 18:01:39 +02:00
Jonas Platte ac75e2f727 Split up serve functions for Serve and WithGracefulShutdown again
We should not spawn a tokio task to wait on a signal that can never arrive.
2025-04-30 14:19:15 +02:00
Jonas Platte c1162d3191 Extract handle_connection out of do_serve 2025-04-30 14:19:15 +02:00
Jonas Platte c25184565b Simplify do_serve a bit 2025-04-30 14:19:15 +02:00
Jonas Platte ba4327ece0 Stop implementing IntoFuture for Serve via with_graceful_shutdown 2025-04-30 14:19:15 +02:00
Jonas Platte 085be6970b Move serve implementation out of WithGracefulShutdown 2025-04-30 14:19:15 +02:00
Jonas Platte 6587b65393 Replace futures_util::pin_mut with std::pin::pin 2025-04-30 14:19:15 +02:00
Jonas Platte 80c4eadd82 Improve documentation about sharing state with handlers (#3333) 2025-04-30 10:03:16 +02:00
daalfox 53631b2873 refactor(axum): Refactor json module (#3332) 2025-04-29 12:12:04 -04:00
Jake 7b04b174b9 axum-extra: Pre-allocate right sized buffer when encoding protobuf response (#3325) 2025-04-26 09:37:32 +02:00
Noa 58f63bb4d0 Add WebSocketUpgrade::selected_protocol (#3248) 2025-04-24 16:37:01 +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
harry007 1599569df2 Remove unnecessary Arc around tokio::watch::Sender 2025-04-24 12:02:11 +02:00
Jonas Platte de02baeac3 Add test for panic location of overlapping method route panic 2025-04-24 11:24:54 +02:00
Jonas Platte 25fac01661 Fix panic location for overlapping method routes 2025-04-24 11:24:54 +02:00
Jonas Platte 291b62e21e Make rust-analyzer happy about tap_inner macro 2025-04-24 11:24:54 +02:00
Jonas Platte 133908c49f Update changelog 2025-04-24 11:23:39 +02:00
Jonas Platte 81dea8ce3e Add a missing semicolon 2025-04-24 11:23:39 +02:00
Jonas Platte ef60f855ce Add Router::reset_fallback 2025-04-24 11:23:39 +02:00
DeepSpaceTravel 9c9cbb5c5f Update route.md to avoid syntax confusion in docs (#3311) 2025-04-14 17:04:39 +02:00
Angel H 170d7d4dcc Add static-serve to ECOSYSTEM.md (#3302) 2025-04-03 22:14:03 +00:00
Jonas Platte 5429ed9bd5 Fix new clippy lints (#3304) 2025-04-03 23:22:19 +02:00
Jonas Platte af6a595fdf Further downstream code size improvements (#3300) 2025-04-01 06:33:18 -04:00
Jonas Platte cd2d5e1417 Fix formatting of axum/CHANGELOG.md 2025-03-28 19:38:11 +01:00
Jonas Platte b150ac028b Release axum 0.8.3 and related crates axum-extra-v0.10.1 axum-v0.8.3 axum-core-v0.5.2 2025-03-28 11:14:58 +01:00
Jonas Platte a9638f76b5 Update changelog 2025-03-28 09:35:21 +01:00
Jonas Platte 7b3143ba58 Replace map_response(IntoResponse::into_response) with custom service wrapper 2025-03-28 09:35:21 +01:00
Jonas Platte 902a3941b7 Remove useless into_response calls
Route::new applies a `map_response(into_response)` already, so the
service being given to it doesn't have to involve an into_response call
itself.
2025-03-28 09:35:21 +01:00
Jonas Platte 0194d1db9a Delete unused module 2025-03-28 09:35:21 +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