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 and GitHub
80c4eadd82
Improve documentation about sharing state with handlers ( #3333 )
2025-04-30 10:03:16 +02:00
daalfox and GitHub
53631b2873
refactor(axum): Refactor json module ( #3332 )
2025-04-29 12:12:04 -04:00
Jake and GitHub
7b04b174b9
axum-extra: Pre-allocate right sized buffer when encoding protobuf response ( #3325 )
2025-04-26 09:37:32 +02:00
Noa and GitHub
58f63bb4d0
Add WebSocketUpgrade::selected_protocol ( #3248 )
2025-04-24 16:37:01 +02:00
Denis and GitHub
6bf1fcbb29
Fix recursive call leading to stack overflow when tracing level filter is TRACE ( #3312 )
2025-04-24 13:03:50 +02:00
harry007 and GitHub
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 and GitHub
9c9cbb5c5f
Update route.md to avoid syntax confusion in docs ( #3311 )
2025-04-14 17:04:39 +02:00
Angel H and GitHub
170d7d4dcc
Add static-serve to ECOSYSTEM.md ( #3302 )
2025-04-03 22:14:03 +00:00
Jonas Platte and GitHub
5429ed9bd5
Fix new clippy lints ( #3304 )
2025-04-03 23:22:19 +02:00
Jonas Platte and GitHub
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 and Jonas Platte
a9638f76b5
Update changelog
2025-03-28 09:35:21 +01:00
Jonas Platte and Jonas Platte
7b3143ba58
Replace map_response(IntoResponse::into_response) with custom service wrapper
2025-03-28 09:35:21 +01:00
Jonas Platte and 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 and Jonas Platte
0194d1db9a
Delete unused module
2025-03-28 09:35:21 +01:00
Jonas Platte and Jonas Platte
2f2bb99550
Run into_parts eagerly in more places
2025-03-28 09:35:21 +01:00
Tomaz Canabrava and GitHub
ee4727b865
Add macro to compile time check if a path is valid ( #3288 )
2025-03-27 19:54:49 +00:00
Jonas Platte and GitHub
62470bd503
Bring back no-op async-stream feature for axum-extra ( #3293 )
2025-03-27 06:12:26 -04:00
Jonas Platte and GitHub
3525a13459
Revert "Make status a const function in rejection handling" ( #3287 )
2025-03-27 08:31:19 +01:00
Jonas Platte and GitHub
2b6ae09568
Simplify Handler async blocks ( #3285 )
2025-03-25 08:07:35 -04:00
Gábor Szabó and GitHub
15917c6dbc
[test] the versioning example ( #3275 )
2025-03-18 10:54:02 +01:00
Gábor Szabó and GitHub
ac7732abd3
[test] the anyhow-error-response example ( #3274 )
2025-03-18 10:53:00 +01:00
Gábor Szabó and GitHub
6fa7cce19d
[test] the validator example ( #3276 )
2025-03-18 10:51:30 +01:00
Andrei Nesterov and GitHub
c997137383
Implement From<Bytes> for Message ( #3273 )
2025-03-17 14:15:15 +00:00
Gábor Szabó and GitHub
f479e0d617
[test] the form example ( #3267 )
2025-03-17 13:31:17 +01:00
Gábor Szabó and GitHub
517223f254
[test] the templates example ( #3269 )
2025-03-17 13:29:27 +01:00
Henrikh Kantuni and GitHub
ab70773f2b
Fix typo ( #3272 )
2025-03-17 11:02:18 +01:00
yjh and GitHub
da3539cb0e
perf: do not convert to Bytes first in protobuf extractor ( #3241 )
2025-02-28 14:31:41 +01:00
K-tecchan and GitHub
0cab17542e
docs: Correct TypedHeader link in axum-core/extract/request_parts.rs ( #3234 )
2025-02-28 07:22:51 +00:00
co63oc and Yann Simon
f9ba7776d9
Fix
2025-02-28 07:48:26 +01:00
Wojciech Kordalski and GitHub
2a5189ed63
Add information about the meaning of Router<S> to Router documentation ( #3235 )
2025-02-27 21:55:14 +00:00
Mateo Lafalce and Yann Simon
7724967867
Add axum-html-minifier to ECOSYSTEM.md
...
+ Add link to baxe to ECOSYSTEM.md
Add the link to axum-html-minifier library to the ECOSYSTEM.md file
+ Motivation
We want to share the library we've built with the community, get feedback and improvement ideas
+ Solution
With this middleware layer we can send fewer packets to the client and increase the throughput of our websites.
2025-02-23 18:12:27 +01:00
Manuel Tumiati and Yann Simon
a192480c4f
Add Baxe to ECOSYSTEM.md
...
Add link to baxe-rs to ECOSYSTEM.md
2025-02-03 09:38:53 +01:00
Noa and GitHub
6c9cabf985
Properly respond with sec-websocket-protocol under http/2 ( #3141 )
2025-02-01 16:17:00 +01:00
ohaddahan and GitHub
0e6e96fb8c
ws: add read_buffer_size(usize) to WebSocketUpgrade ( #3178 )
2025-01-29 06:21:56 -05:00
Saurav Sharma and Jonas Platte
687f014875
Update ECOSYSTEM.md
...
Add https://crates.io/crates/tower_allowed_hosts to ECOSYSTEM.md
2025-01-25 09:16:38 -05:00
Ivan Krivosheev and GitHub
b0b81746f7
axum-core/body: Implement Stream::size_hint for BodyDataStream ( #3195 )
2025-01-24 11:16:00 +01:00