Commit Graph
87 Commits
Author SHA1 Message Date
Shudhanshu Patel 98aea470f9 feat(macros): add compile-time validations to TypedPath macro (#3797) 2026-07-14 15:06:04 +02:00
Mochammad Farros Fatchur Roji 5b52bcdcfa Support affixed typed path captures (#3782) 2026-06-10 21:24:35 +02:00
patelshudhanshu1999-maker 6ed9210351 fix(axum-macros): use OptionalFromRequest for Option<T> fields (#3760) 2026-05-16 23:33:44 +02:00
David Pedersen 5bc0046084 chore: fix typos (#3758) 2026-05-15 12:32:46 +00:00
David Pedersen c853e44ffc chore: use a more recent nightly for axum-macros tests 2026-05-05 15:16:24 +02:00
Dihan Nahdi 309d1bd953 feat: add #[diagnostic::on_unimplemented] to IntoResponse and IntoResponseParts (#3723) 2026-04-15 13:06:40 +02:00
Jonas Platte f8e0e6d025 Update Cargo.lock and examples/Cargo.lock (#3643) 2026-02-03 23:38:36 +01:00
Jonas Platte fd57d871aa Improve error messages with #[diagnostic::do_not_recommend] (#3588) 2025-12-20 18:40:34 +01:00
Jonas Platte 72e820f6fa Bump nightly for axum-macros (#3500) 2025-09-28 20:31:17 +02:00
Jonas Platte 4ab8df5e42 Switch serde dependency to serde_core (#3477) 2025-09-14 08:49:07 +02:00
Kyle Nweeia 0832de443c Use via extractor's rejection instead of axum::response::Response (#3261) 2025-07-16 09:50:59 +00:00
Tobias Bieniek 33b353def8 Update docs.rs links to 0.8 (#3120) 2024-12-27 13:15:58 +01:00
Jonas Platte ec75ee3827 Add a separate trait for optional extractors (#2475) 2024-12-10 02:54:59 +00: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
David Mládek 6318b57fda chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
Zheng LiandJonas Platte 19101f624d Replace async_trait with AFIT / RPITIT (#2308)
Co-authored-by: Jonas Platte <[email protected]>
2024-09-28 21:27:11 +00:00
Jonas Platte 8b1cad656f Bump nightly version used for ui tests (#2805) 2024-09-11 20:41:44 +02:00
AlphaKeks 74eac39e06 Fix clippy warning on FromRef derive macro (#2827) 2024-07-09 23:08:59 +02:00
Jonas PlatteandLogan Nielsen 34e11c50b5 Add Extension<NonCloneType> debug_handler ui test (#2731)
Co-authored-by: Logan Nielsen <[email protected]>
2024-06-09 20:17:43 +02:00
Yann SimonandDavid Pedersen df612fdc72 Add #[debug_middleware] (#2725)
Co-authored-by: David Pedersen <[email protected]>
2024-05-02 17:27:12 -04: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 3569950a2e Make nightly_error_messages feature compatible with latest nightly 2024-03-14 21:19:03 +01:00
d2cea5cdbd Improve debug_handler on tuple response types (#2201)
Co-authored-by: David Pedersen <[email protected]>
Co-authored-by: Jonas Platte <[email protected]>
2023-12-30 21:48:35 +00:00
David Pedersen 85573e0573 impl IntoResponseParts for () (#2471) 2023-12-30 17:47:22 +00:00
David Pedersen 12e8c6219d Support graceful shutdown on serve (#2398) 2023-12-29 11:17:58 +00:00
Justin Sexton f98bc1186a Updated doc link versions to use more explicit 0.7 version. (#2379) 2023-11-29 09:31:17 +00:00
David Pedersen 15781fe22b Prepare serve for potentially supporting graceful shutdown (#2357) 2023-11-26 12:21:35 +00:00
David Pedersen ff9764574c Implement FromRequestParts for Parts and Extensions (#2328) 2023-11-23 11:30:23 +00:00
43b14a5f02 Update to latest versions of hyper and http-body (#1882)
Co-authored-by: Michael Scofield <[email protected]>
Co-authored-by: Jonas Platte <[email protected]>
2023-11-23 11:03:03 +00:00
Mikhail Antoshkin c100650464 Fix items-after-test-module clippy warning on 1.75.0-beta.1 (#2318) 2023-11-16 07:15:16 +00:00
Georg Semmler 2f6200dfbd Use the diagnostic namespace (#2246) 2023-09-29 09:25:26 +02:00
David Pedersen cc611b8b24 Implement IntoResponse for (R,) where R: IntoResponse (#2143) 2023-08-03 18:15:06 +00:00
Jonas Platte 432289dd04 Replace :emoji: codes with the actual emoji (#2144) 2023-08-03 08:23:18 +00:00
二手掉包工程师 5503b3236b Fix CI (#2086)
- Use exactly version 1.0.0-rc.3 of hyper
- Update expected output of UI tests
- Fix clippy lints

Signed-off-by: hi-rustin <[email protected]>
2023-07-13 16:53:22 +02:00
Alexander JacksonandDavid Pedersen 68696b09b1 Allow unreachable code in #[debug_handler] (#2014)
Co-authored-by: David Pedersen <[email protected]>
2023-06-22 21:51:52 +00:00
877e3fe4de Move TypedHeader to axum-extra (#1850)
Co-authored-by: Michael Scofield <[email protected]>
Co-authored-by: Jonas Platte <[email protected]>
2023-04-21 17:45:31 +02:00
6703f8634c Remove B type param: Follow ups (#1789)
Co-authored-by: Jonas Platte <[email protected]>
Co-authored-by: Michael Scofield <[email protected]>
2023-04-21 17:45:31 +02:00
4e4c29175f Remove B type param (#1751)
Co-authored-by: Jonas Platte <[email protected]>
Co-authored-by: Michael Scofield <[email protected]>
2023-04-21 17:45:31 +02:00
David Pedersen cfb5df7050 Give better error if generics are used with #[derive(FromRef)] (#1874) 2023-03-22 14:48:27 +01:00
Jonas PlatteandDavid Pedersen a26ddd1063 Improve debug_handler message for generic request-consuming extractors (#1826)
Co-authored-by: David Pedersen <[email protected]>
2023-03-10 08:51:03 +00:00
David Pedersen 416a0568d3 Add special handling of FromRequest extractors not being the last arg (#1797) 2023-03-03 09:44:10 +01:00
David Pedersen cd86f7ec7a Use 422 Unprocessable Entity for Form deserialization errors, except GET and HEAD requests (#1683) 2023-02-17 09:59:02 +01:00
David Pedersen 0ecf5eeb19 Support passing MethodRouter to Router::fallback (#1730) 2023-02-11 23:11:55 +01:00
Jonas Platte 19596584da Update trybuild output 2023-01-30 21:47:57 +01:00
Jonas Platte bdfaedb344 Use call-site span for future Send check in debug_handler 2023-01-30 21:47:57 +01:00
David Pedersen 5b07296001 Add RawPathParams (#1713) 2023-01-20 20:37:01 +00:00
valkyrie_pilotandDavid Pedersen e4c6d76bca Implement IntoResponse for [u8; N] and &'static [u8; N] (#1690)
Co-authored-by: David Pedersen <[email protected]>
2023-01-13 09:12:51 +00:00
Alexander Jackson b6c282a2b7 Fix warnings for cloning references in generated code (#1676) 2023-01-05 11:50:02 +01:00
David Pedersen 0b26411f39 Change Router::with_state and impl Service for Router<()> (#1552)
* Implement `Service` for `Router<(), B>`

* wip

* wip

* fix some tests

* fix examples

* fix doc tests

* clean up docs

* changelog

* fix

* also call `with_state` when converting `MethodRouter` into a `MakeService`

* suggestions from review
2022-11-24 14:43:10 +00:00