Vegard Sandengen
59a2960e42
Add ErrorKind::DeserializeError to specialize ErrorKind::Message (`extract::path::ErrorKind`) ( #2720 )
...
This commit introduces another `extract::path::ErrorKind` variant that captures the
serde error nominally captured through the `serde:🇩🇪 :Error` trait impl on `PathDeserializeError`.
We augment the deserialization error with the captured (key, value), allowing `extract::Path`, and wrapping
extractors, to gain programmatic access to the key name, and attempted deserialized value.
The `PathDeserializationError::custom` is used two places in addition to capture the deserialization error.
These usages should still be unaffected.
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-11-11 16:56:25 +00:00
David Mládek
269565ff93
CI: allow `pin-project-lite` in public dependencies ( #3020 )
2024-11-07 17:27:41 +01:00
Benjamin Sparks
ffeb4f9407
Add Scheme extractor ( #2507 )
2024-10-19 22:04:24 +00:00
Erin
114369418d
Fix TSR redirecting to top-level inside nested Router ( #2993 )
...
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-10-17 16:43:14 +02:00
David Mládek
65ad603701
chore: fix new clippy lint ( #2994 )
2024-10-17 12:27:47 +02:00
Jonas Platte
0ddc63f77e
Move the Host extractor to axum-extra ( #2956 )
2024-10-14 22:45:37 +00:00
Sabrina Jewson
822db3b1af
Add `MethodFilter::CONNECT` ( #2961 )
2024-10-06 19:09:06 +00:00
Sabrina Jewson
4b4dac4d86
Add `axum_extra::json!` ( #2962 )
2024-10-06 19:01:10 +00:00
Jonas Platte
47791cb593
Remove versions from internal dev-dependencies
...
This breaks the cyclic dependencies for publishing.
2024-10-05 11:44:31 +00:00
Jonas Platte
9a69e415fb
Release axum 0.8.0-alpha.1 and related crates ( #2958 )
2024-10-05 11:20:05 +02:00
zleyyij
31a87f8b2b
axum-extra: Remove stray deprecation in multipart builder ( #2957 )
2024-10-04 16:59:26 +00:00
David Mládek
6318b57fda
chore: Upgrade matchit to 0.8 ( #2645 )
2024-10-03 15:46:58 +00:00
David Mládek
4944ed3b1c
Update MSRV in READMEs ( #2948 )
2024-09-30 10:18:49 +02:00
creativcoder
3eb8854839
Move Html from axum-extra to axum ( #2633 )
2024-09-29 09:00:38 +00:00
David Pedersen
52fd139a86
Require `Sync` for services ( #2473 )
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-09-28 23:28:44 +02:00
Zheng Li
19101f624d
Replace async_trait with AFIT / RPITIT ( #2308 )
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-09-28 21:27:11 +00:00
Jonas Platte
689ca1aea2
Update MSRV for all crates to 1.75 ( #2943 )
2024-09-28 21:21:41 +00:00
zleyyij
55f9170c7c
Add multipart/form-data response builders to axum-extra ( #2654 )
2024-09-28 19:40:52 +00:00
Jonas Platte
4b48f308c3
Merge branch 'v0.7.x' into main
2024-09-27 22:37:09 +02:00
Jonas Platte
fe56a310ef
Bump versions
2024-09-27 22:36:28 +02:00
Jonas Platte
6f5607785d
core: Fix compile errors from __log_rejection ( #2933 )
2024-09-27 21:22:59 +02:00
Jonas Platte
391f2deccd
core: Fix compile errors from __log_rejection ( #2933 )
2024-09-25 03:44:35 -04:00
Jonas Platte
712b3ef24b
Merge branch 'v0.7.x' into main
2024-09-20 21:27:30 +02:00
Jonas Platte
a73dab417d
Bump versions
2024-09-20 21:25:30 +02:00
Shawn
855dc191b1
Update prost to 0.13 ( #2829 )
2024-09-20 21:06:41 +02:00
Jonas Platte
d2d74f6ad1
Upgrade tower and tower-http
2024-09-20 20:57:12 +02:00
Jonas Platte
652e59b0c0
Upgrade tower and tower-http
2024-09-20 20:34:07 +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
b214e39581
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-11 19:17:25 +00:00
Benno van den Berg
50274725cb
Resolve clippies ( #2843 )
2024-07-24 00:07:25 +02:00
joeydewaal
fcb45b8d32
Add an Attachment type to axum-extra ( #2789 )
2024-06-19 14:28:15 +02:00
David Mládek
51bb82bb2d
axum-core: Correctly use features for tracing macro ( #2739 )
2024-06-09 23:26:27 +02:00
David Mládek
0a92e31a50
axum-extra: Log rejections of `TypedHeader` ( #2738 )
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-05-27 21:55:30 +00:00
tison
dbd6178393
Upgrade reqwest to 0.12 ( #2688 )
...
Signed-off-by: tison <wander4096@gmail.com>
2024-03-29 08:34:56 +01:00
David Pedersen
d7b852896d
Fix changelog link ( #2677 )
2024-03-25 08:00:19 +01:00
David Pedersen
ef8a9e812c
Release axum and axum-extra ( #2676 )
2024-03-24 20:17:10 +01:00
mikihiro
c6fd852844
Update `sync_wrapper` to 1.0.0 from 0.1.1
...
... and fix CI.
2024-03-23 19:46:20 +01:00
David Mládek
2ec68d6c4d
Add rejection tracing to all extractors ( #2584 )
2024-03-16 22:34:18 +01:00
AlphaKeks
9e31949079
Improve documentation of `axum_extra::extract::Query` ( #2517 )
2024-01-15 21:49:40 +01:00
Nick Price
934b1aac06
Grammar: Fix "it's" vs "its" in several places ( #2518 )
2024-01-15 21:48:11 +01:00
David Pedersen
9ebd105d04
Release ( #2510 )
2024-01-13 14:31:03 +01:00
Joshua Chapman
791d5038a9
Add is_missing method to typed header rejection reason ( #2503 )
2024-01-10 12:17:03 +01:00
Yann Simon
f7c4cd883a
Fix link to serde::Deserialize ( #2498 )
2024-01-09 16:25:17 +00:00
David Pedersen
c486cc8207
Implement `TypedPath` for `WithRejection<TypedPath, _>` ( #2491 )
2024-01-04 21:08:20 +01:00
David Pedersen
7ea7e9f618
Use `IntoFuture` for test `RequestBuilder` ( #2470 )
2023-12-30 18:23:53 +01:00
David Pedersen
fe89ab5592
Release ( #2461 )
2023-12-29 17:47:06 +01:00
future-highway
56159b0d4e
JsonDeserializer extractor for zero-copy deserialization ( #2431 )
2023-12-29 12:06:47 +01:00
David Pedersen
72ccde5900
Update multer ( #2433 )
2023-12-17 11:31:38 +00:00
Joshua Mo
2b486ea174
docs: Typo correction ( #2405 )
2023-12-04 19:04:07 +01:00
David Pedersen
ab36eda6aa
Release axum and axum-core ( #2402 )
2023-12-04 09:16:15 +01:00