Commit Graph
85 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
Alejandro González e9909fef4d fix: silence clippy::implicit_clone in TypedPath macro expansions (#3663) 2026-02-17 15:46:33 +09:00
3moredays c972bcba96 fix: TypedPath conflicts with OptionalFromRequestParts (#3645) 2026-02-09 10:09:07 +01:00
Jonas Platte f3a95d786a Fix return types of serve futures (#3601) 2025-12-28 09:25:50 +01:00
Kyle Nweeia 0832de443c Use via extractor's rejection instead of axum::response::Response (#3261) 2025-07-16 09:50:59 +00:00
Theodore Bjernhed 6bc0717b06 Improve value and reference passing efficiency (#3406) 2025-07-11 05:38:45 +02:00
Theodore Bjernhed 1b157a461e Enable and fix control flow related clippy lints 2025-07-09 18:48:28 +00:00
Theodore Bjernhed 0f255c3c4c style: use Self to avoid unnecessary repetition (#3396) 2025-07-04 21:10:01 +00:00
Theodore Bjernhed b8d9a3e764 style: Reorder macro-generated items to fix lints (#3392) 2025-07-01 23:01:54 +02:00
Jonas Platte d72a0f962a Make clippy happy (#3350) 2025-05-13 09:58:45 +02:00
David Mládek 4f11b45b18 axum-macros: move from_request.rs to from_request/mod.rs (#3163) 2025-01-08 22:08:35 +01:00
Tobias Bieniek f8f3a030b3 Update more hardcoded docs.rs URLs (#3125) 2024-12-27 23:37:28 +01:00
Tobias Bieniek 33b353def8 Update docs.rs links to 0.8 (#3120) 2024-12-27 13:15:58 +01:00
Jonas Platte d84136e1e4 Centralize lint configuration (#3055) 2024-11-30 16:53:48 +01:00
Jonas Platte c7aa6454e7 Fix new clippy lints (#3054) 2024-11-28 23:53:20 +01: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
tiaoxizhan 680cdcba7c chore: Add missing symbol (#2909)
Signed-off-by: tiaoxizhan <[email protected]>
2024-09-12 19:44:44 +02:00
Benno van den Berg 50274725cb Resolve clippies (#2843) 2024-07-24 00:07:25 +02:00
AlphaKeks 74eac39e06 Fix clippy warning on FromRef derive macro (#2827) 2024-07-09 23:08:59 +02:00
Chris Pick 035c8a36b5 Fix a few typos in docs and comments (#2808) 2024-06-27 08:45:57 +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
David Mládek 66b3b3df55 Document usage of concrete state in FromRequest macro (#2550) (#2581) 2024-02-11 12:12:03 +01:00
Nick Price 934b1aac06 Grammar: Fix "it's" vs "its" in several places (#2518) 2024-01-15 21:48:11 +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
Justin Sexton f98bc1186a Updated doc link versions to use more explicit 0.7 version. (#2379) 2023-11-29 09:31:17 +00:00
Justin Sexton 57c59170c0 Updated doc link versions from 0.6.x to 0.7. (#2378) 2023-11-29 08:44:32 +00:00
Yuri Astrakhan 17993c5717 A few clippy inspired changes (#2233) 2023-09-29 07:28:57 +00:00
Georg Semmler 2f6200dfbd Use the diagnostic namespace (#2246) 2023-09-29 09:25:26 +02:00
nabbisen 70171980cc fix typo in axum-macros README: according to Cargo.toml msrv is 1.60 (#2204) 2023-09-11 12:03:50 +00: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
David Pedersen c97967252d Add serve function and remove Server re-export (#1868) 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 39bb28130d Enable println warning (#1929) 2023-04-14 22:26:56 +02:00
David Pedersen cfb5df7050 Give better error if generics are used with #[derive(FromRef)] (#1874) 2023-03-22 14:48:27 +01:00
David Pedersen 8e1eb8979f Update to syn 2 (#1862) 2023-03-18 19:23:27 +00: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
A-Walrus 1327a598ce Hide debug_handler generated functions from docs (#1825) 2023-03-07 10:20:50 +00:00
David Pedersen 6075be60ed Wording tweak in #[debug_handler] docs (#1807) 2023-03-03 12:38:26 +01:00
Jesper JosefssonandDavid Pedersen 67befbca52 Document the fact that debug_handler doesn't work within impl blocks (#1800)
Co-authored-by: David Pedersen <[email protected]>
2023-03-03 09:57:50 +01:00
David Pedersen 416a0568d3 Add special handling of FromRequest extractors not being the last arg (#1797) 2023-03-03 09:44:10 +01:00
Jules Guesnon 67422bb1c2 Allow clone_on_copy for FromRef (#1749) 2023-02-12 12:16:53 +01:00
Jonas Platte bdfaedb344 Use call-site span for future Send check in debug_handler 2023-01-30 21:47:57 +01:00
Jonas Platte 7ecf8bd6cf Use implicit format-args captures where applicable (#1709) 2023-01-20 12:04:49 +01:00
David Pedersen 1be25d9496 Add internal macro to make tests of nest easier to write (#1694) 2023-01-14 14:12:01 +00:00