Commit Graph
1413 Commits
Author SHA1 Message Date
Leon LuxandDavid Mládek 8bc326cc3d Improve docs regarding state and extensions (#2991)
Co-authored-by: David Mládek <[email protected]>
2024-11-14 23:00:51 +01:00
Benjamin SparksandBenjamin Sparks b30cdcfbea Remove unneeded macro usage (#2995)
Co-authored-by: Benjamin Sparks <[email protected]>
2024-11-14 23:00:25 +01:00
Jan 185804398f fix(sse): skip sse incompatible chars of serde_json::RawValue (#2992) 2024-11-14 22:59:56 +01:00
ErinandDavid Mládek 43814c174f Fix TSR redirecting to top-level inside nested Router (#2993)
Co-authored-by: David Mládek <[email protected]>
2024-11-14 22:58:54 +01:00
David Mládek eb6bea38d0 chore: fix new clippy lint (#2994) 2024-11-14 22:57:29 +01:00
Flamenco 8d7eada034 Update middleware.md (#2967) 2024-11-14 22:57:16 +01:00
David Mládek a7b7d56cfb Update changelog (#2985) 2024-11-14 22:55:11 +01:00
Leon LuxandJonas Platte c5a3c66a27 Add method_not_allowed_fallback to router (#2903)
Co-authored-by: Jonas Platte <[email protected]>
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 axum-v0.7.7 axum-core-v0.4.5 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 axum-extra-v0.9.4 axum-v0.7.6 axum-macros-v0.4.2 axum-core-v0.4.4 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 PlatteandYann Simon 0ba73b5c6e Implement FromRequest for BytesMut (#2583)
Co-authored-by: Yann Simon <[email protected]>
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 <[email protected]>
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