Commit graph

1407 commits

Author SHA1 Message Date
David Mládek
a7b7d56cfb
Update changelog (#2985) 2024-11-14 22:55:11 +01:00
Leon Lux
c5a3c66a27
Add method_not_allowed_fallback to router (#2903)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-11-14 22:53:41 +01:00
Jonas Platte
a59a82c2af
Replace Router::{map_inner, tap_inner_mut} by macros (#2954) 2024-11-14 22:53:35 +01:00
oxalica
dcb4af68de
Add struct NoContent as a self-described shortcut (#2978) 2024-11-14 22:44:01 +01:00
novacrazy
236781cfdc
Avoid cloning the uri/path 2024-11-14 22:42:06 +01:00
novacrazy
c417a28142
Avoid cloning the state in layer 2024-11-14 22:39:32 +01:00
Yann Simon
296dfe1a40
Add test to cover state cloning in layer 2024-11-14 22:35:30 +01:00
novacrazy
092719c217
Remove one clone 2024-11-14 22:34:06 +01:00
Yann Simon
e66be09d59
Cover clone in fallback with tests 2024-11-14 22:30:58 +01:00
novacrazy
0d4e224cae
Avoid one state clone
This is an extraction of a part of https://github.com/tokio-rs/axum/pull/2865
2024-11-14 22:17:24 +01:00
Sabrina Jewson
c2e7fc0b3d
Add MethodFilter::CONNECT (#2961) 2024-11-14 21:49:11 +01:00
Sabrina Jewson
b71d4fa557
Add axum_extra::json! (#2962) 2024-11-14 21:25:54 +01:00
zleyyij
5b6d1caaa7
axum-extra: Remove stray deprecation in multipart builder (#2957) 2024-11-14 21:20:26 +01:00
zleyyij
bdefe59648
Add multipart/form-data response builders to axum-extra (#2654) 2024-11-14 21:20:10 +01:00
Jonas Platte
fe56a310ef
Bump versions 2024-09-27 22:36:28 +02:00
Jonas Platte
ac50d7daaf
docs: Remove manual tables of content (#2921) 2024-09-27 21:24:08 +02:00
Jonas Platte
6f5607785d
core: Fix compile errors from __log_rejection (#2933) 2024-09-27 21:22:59 +02:00
Jonas Platte
4fc0641874
Upgrade private dependencies (#2935) 2024-09-27 21:22:29 +02:00
Sabrina Jewson
6ec3a51f2d
Clarify some subtleties of routing (#2896) 2024-09-27 21:22:04 +02:00
Jonas Platte
a73dab417d
Bump versions 2024-09-20 21:25:30 +02:00
yhx-12243
f1723890cb
Avoid reallocation for String body extraction (#2857) 2024-09-20 21:14:42 +02:00
Jonas Platte
0ba73b5c6e
Implement FromRequest for BytesMut (#2583)
Co-authored-by: Yann Simon <yann.simon@commercetools.com>
2024-09-20 20:57:26 +02:00
Jonas Platte
88de9fc407
ci: Add more allowances for multiple version of the same crate 2024-09-20 20:57:17 +02:00
Jonas Platte
d2d74f6ad1
Upgrade tower and tower-http 2024-09-20 20:57:12 +02:00
tiaoxizhan
f446b420ba
chore: Add missing symbol (#2909)
Signed-off-by: tiaoxizhan <tiaoxizhan@outlook.com>
2024-09-20 20:57:04 +02:00
Jonas Platte
de9290a8b7
Add more must_use attributes (#2846)
… so people get a warning when they accidentally add a semicolon after the response expression in a handler function.

Also update changelogs of axum-core, axum-extra.
2024-09-12 12:09:21 +02:00
Jonas Platte
8b1cad656f
Bump nightly version used for ui tests (#2805) 2024-09-11 20:41:44 +02:00
Benjamin Sparks
6efcb75d99
Fix warnings and errors from beta Rust (#2904) 2024-09-09 18:55:15 +00:00
Joseph Lenton
1ac617a1b5
Add local_addr for Serve and WithGracefulShutdown (#2881) 2024-08-24 10:07:47 +02:00
Weipeng Hong
ef1448a3f5
Use env!("CARGO_CRATE_NAME") in the example to simplify the tracing setup code (#2884) 2024-08-24 08:36:08 +02:00
holmofy
bd3eaa7886
ecosystem: Add spring-rs (#2877) 2024-08-17 15:17:32 +00:00
StNicolay
6f50c6ed4e
Made DefaultBodyLimit const friendly (#2875) 2024-08-16 04:12:35 -04:00
Baptiste Le Morlec
35c6f11c94
Add docs on using tokio task_local to share state (#2769) 2024-08-13 21:48:31 +00:00
sontixyou
52ae7bb904
Fix link of axum-sessions in ECOSYSTEM.md (#2862) 2024-08-10 10:26:47 +02:00
Benno van den Berg
6dfd0037bf
Upgrade tokio-tungstenite to 0.23 (#2841) 2024-08-09 20:41:01 +02:00
vsuryamurthy
dd5cbffb5d
Update extract doc mentioning optional extractors in axum-extra (#2801) 2024-08-09 20:31:39 +02:00
Yann Simon
c52bf9ebba
Add compression example (#2623) 2024-08-09 20:29:41 +02:00
Marco Di Pillo Tomic
179942d9cd
Update ECOSYSTEM.md (#2861) 2024-08-06 19:11:30 +02:00
redforks
8dc371e9a2
Update reqwest-response example (#2852) 2024-07-30 08:55:15 +02:00
Valerio Ageno
304cbee7c9
examples: Include headers into response in reqwest example (#2812) 2024-07-26 17:36:45 +00:00
Benno van den Berg
50274725cb
Resolve clippies (#2843) 2024-07-24 00:07:25 +02:00
Mohamed Eliwa
37e4574012
Fixing a typo in the documentation of with_state method of Router, making it more clear (#2838) 2024-07-21 23:08:36 +02:00
Bittrance
205371a6b5
Clarify middleware::from_fn argument requirements (#2834) 2024-07-19 10:29:23 +02:00
AlphaKeks
74eac39e06
Fix clippy warning on FromRef derive macro (#2827) 2024-07-09 23:08:59 +02:00
Konstantin Keller
905a1a72a3
docs: Add axum-postgres-template to ECOSYSTEM.md (#2771) 2024-07-04 21:57:25 +02:00
Chris Pick
035c8a36b5
Fix a few typos in docs and comments (#2808) 2024-06-27 08:45:57 +02:00
Chris Beck
4f3999c20f
Add Router::has_routes (#2790) 2024-06-22 21:31:22 +00:00
vsuryamurthy
670bf694dc
Remove unused dependency heck from axum-macros (#2798) 2024-06-21 14:08:38 +02:00
joeydewaal
fcb45b8d32
Add an Attachment type to axum-extra (#2789) 2024-06-19 14:28:15 +02:00
David Mládek
806bc26e62
CI: Pin nightly version for cargo public-api-crates (#2779) 2024-06-09 23:33:25 +02:00