Commit graph

1524 commits

Author SHA1 Message Date
Jonas Platte
5cdd8a4f18
axum 0.8.0-rc.1 (#3073) 2024-12-17 23:47:42 +01:00
Shikhar Bhushan
c596deafe4
Remove unused nodelay field in Serve (#3076) 2024-12-12 22:05:41 -05:00
Felix B. Bause
2ba7c43647 Fix: documentation link to passing state 2024-12-11 15:22:37 +01:00
dayvejones
da63c14467
examples: Upgrade bb8-postgres deps (#3072) 2024-12-09 22:36:47 -05:00
Jonas Platte
ec75ee3827
Add a separate trait for optional extractors (#2475) 2024-12-10 02:54:59 +00:00
Hamir Mahal
fd11d8efde
Remove raw string hashes (#3071) 2024-12-08 20:49:09 -05:00
YanHeDoki
7c871e9591
Add FileStream response to axum-extra (#3047) 2024-12-04 12:33:07 +00:00
Jonas Platte
99c07e4d86
Enable and fix warnings from clippy::uninlined_format_args (#3063) 2024-12-03 22:27:14 +01:00
Necdet Arda Etiman
b5a0109221 Added axum-ws-broadcaster to ECOSYSTEM.md 2024-12-02 17:42:51 +01:00
Jonas Platte
9fab45af46
Make ConnectInfo work with ListenerExt::tap_io (#3059) 2024-12-02 07:36:50 +00:00
Jonas Platte
6d30c579e0
Remove multipart from axum-extra' default features (#3058) 2024-12-01 11:44:54 +01:00
Jonas Platte
f6379558e6
Clean up axum-extra'a new error-response feature (#3057) 2024-12-01 11:44:43 +01:00
Jonas Platte
84c3960639
Make serve generic over the listener and IO types (#2941)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2024-11-30 23:47:13 +01:00
Jonas Platte
d84136e1e4
Centralize lint configuration (#3055) 2024-11-30 16:53:48 +01:00
Claas
2eaed0badc
Fix PrivateCookieJar documentation example comments (#3053) 2024-11-28 23:00:14 +00:00
Jonas Platte
c7aa6454e7
Fix new clippy lints (#3054) 2024-11-28 23:53:20 +01:00
Jonas Platte
11806fbc61
Disallow nesting at the root of the router (#3051) 2024-11-26 20:59:40 +01:00
Jonas Platte
fb1b8f1a55
Remove unused import in trybuild test (#3050) 2024-11-26 20:47:43 +01:00
Jonas Platte
9ddb25f089
Re-format trybuild tests (#3049) 2024-11-26 18:04:01 +00:00
Jonas Platte
f1c79a459b
Simplify todos_index in todos example (#3048) 2024-11-26 18:56:29 +01:00
joeydewaal
69a89c00e7
Add Attachment type in features documentation (#3046) 2024-11-24 01:02:05 +01:00
Jonas Platte
9517decf2f
Don't panic when array type is used for path segment (#3039) 2024-11-19 20:57:30 +00:00
Logan B. Nielsen
7e59625778
Implement CSRF token verification for OAuth example (#2534)
Co-authored-by: Logan Nielsen <loganbn@amazon.com>
Co-authored-by: Logan Nielsen <logan.nielsen@one.app>
2024-11-17 22:27:54 +01:00
Leon Lux
dc5c202c5f
Add shorthand way to return non-IntoResponse errors (#3010)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-11-17 22:12:45 +01:00
Tobias Bieniek
9ec18b9a5d
axum: Add content-length header assertions to middleware_adding_body test (#3033) 2024-11-16 23:41:27 +01:00
Jonas Platte
17016d6dd6
Merge branch 'v0.7.x' into jplatte/merge-v0.7.x 2024-11-16 17:12:32 +01:00
Jonas Platte
9983bc1da4
Bump versions 2024-11-16 17:10:03 +01:00
Tobias Bieniek
a8ce6fa030
axum-extra: Add links to features table (#3030) 2024-11-16 17:07:38 +01:00
Sabrina Jewson
ce3d42947e
fix: Avoid setting content-length before middleware (#3031) 2024-11-16 16:50:25 +01:00
David Mládek
893bb75e3b
CI: allow pin-project-lite in public dependencies (#3020) 2024-11-16 16:25:41 +01:00
Tobias Bieniek
f09e7fba9d
axum-extra: Add links to features table (#3030) 2024-11-16 11:14:51 +01:00
Jonas Platte
dee0985dfb
Merge branch 'v0.7.x' into jplatte/merge-v0.7.8 2024-11-14 23:24:29 +01:00
Jonas Platte
feee742ca1
Bump versions 2024-11-14 23:13:41 +01:00
Jonas Platte
da4580247a
Some documentation fixes (#3027) 2024-11-14 23:01:27 +01:00
Leon Lux
8bc326cc3d
Improve docs regarding state and extensions (#2991)
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-11-14 23:00:51 +01:00
Benjamin Sparks
b30cdcfbea
Remove unneeded macro usage (#2995)
Co-authored-by: Benjamin Sparks <b.sparks@alugha.com>
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
Erin
43814c174f
Fix TSR redirecting to top-level inside nested Router (#2993)
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
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 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