Commit graph

250 commits

Author SHA1 Message Date
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
David Pedersen
b7d14d3602
Release axum 0.7 (#2354) 2023-11-27 09:30:38 +01:00
David Pedersen
1a78e093ed
Apply changelog changes from 0.6 branch to main (#2353) 2023-11-25 20:44:07 +01:00
Jonas Platte
906f803a20
Update changelog (#2349) 2023-11-25 18:34:04 +01:00
19年梦醒
fc3cb44b91
Upgrade headers to 0.4.0 (#2351) 2023-11-25 08:47:57 +00:00
Michael Seele
e3d34bb553
axum-extra: Use impl Into<Cookie> (#2348) 2023-11-24 21:39:14 +01:00
Davide Ferrero
fd7fd9fa71
Upgrade cookie dependency to 0.18
… and replace uses of the deprecated Cookie::named fn.
2023-11-24 12:40:12 +01:00
David Pedersen
43b14a5f02
Update to latest versions of hyper and http-body (#1882)
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2023-11-23 11:03:03 +00:00
Mikhail Antoshkin
39cc596e45
Add OptionalQuery extractor (#2310)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-11-18 12:38:30 +00:00
Jonas Platte
e84d563b26
Improve documentation of axum::Form (#2289) 2023-10-26 06:37:19 +09:00
Georg Semmler
2f6200dfbd
Use the diagnostic namespace (#2246) 2023-09-29 09:25:26 +02:00
David Pedersen
3b3bbb2403
Make tokio an optional dependency of axum-extra (#2236) 2023-09-21 07:33:40 +00:00
Yuri Astrakhan
786329d85d
Use inline format args (#2232) 2023-09-19 06:51:57 +00:00
David Pedersen
eade3fdad6
Update prost (#2224) 2023-09-14 15:19:23 +02:00
Jonas Platte
24f0f3eae8 Remove unused mut 2023-08-22 12:22:45 +02:00
Jonas Platte
34d1fbc052 Fix typos found by crate-ci/typos 2023-08-08 11:27:45 +02:00
Jonas Platte
432289dd04
Replace :emoji: codes with the actual emoji (#2144) 2023-08-03 08:23:18 +00:00
Jonas Platte
8af38763a5
Implement Clone for ErasedJson (#2142) 2023-08-02 19:35:04 +00:00
David Pedersen
6416a4784b
axum-extra: Remove unused tower-http dependency (#2137) 2023-08-02 07:50:44 +00:00
Ikko Eltociear Ashimine
025144be7e
Fix typo in typed_header.rs (#2133) 2023-07-31 15:27:20 +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 <rustin.liu@gmail.com>
2023-07-13 16:53:22 +02:00
Rodrigo Santiago
b80d126137
Remove bitflags crate dependency (#2073)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-07-05 20:08:11 +00:00
Alex Butler
26daec2b17
Update tokio-tungstenite to 0.19 (#2021)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-06-23 00:03:30 +02:00
Asger Hautop Drewsen
40da647620
docs: Remove explicit auto deref from PrivateCookieJar example (#2028)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-06-22 21:50:45 +00:00
Azzam S.A
8374c3e789
docs: add warning icon for extractor order (#2027) 2023-06-05 12:05:53 +02:00
Eric Seppanen
ce7739e76d
Fix typo in json_lines.rs (#1970) 2023-04-29 07:49:21 +02:00
David Pedersen
877e3fe4de Move TypedHeader to axum-extra (#1850)
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
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
David Pedersen
6703f8634c Remove B type param: Follow ups (#1789)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
2023-04-21 17:45:31 +02:00
David Pedersen
72c1b7a80c Add Body::from_stream (#1848) 2023-04-21 17:45:31 +02:00
David Pedersen
4e4c29175f Remove B type param (#1751)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
2023-04-21 17:45:31 +02:00
David Pedersen
c31bea2f96
Release axum and axum-extra (#1942) 2023-04-18 20:40:42 +02:00
David Pedersen
e97462d452
Add Html, Css, JavaScript, and Wasm response types (#1921) 2023-04-17 13:20:17 +02:00
David Pedersen
39bb28130d
Enable println warning (#1929) 2023-04-14 22:26:56 +02:00
David Pedersen
51edc9c895
Release (#1923) 2023-04-11 17:23:38 +02:00
David Pedersen
6b106f4bab
Log built-in rejections (#1890) 2023-04-11 16:57:49 +02:00
David Pedersen
352cf9a266
Implement Deref and DerefMut for built-in extractors (#1922) 2023-04-10 07:18:35 +00:00
Jonas Platte
43b2d52403
Add OptionalPath extractor (#1889)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-04-09 12:23:13 +00:00
David Pedersen
9b1f1a907b
Update allowed crates in public API (#1888) 2023-03-27 17:12:19 +02:00
David Pedersen
4dd062e8ed Add missing changelog link 2023-03-22 15:26:17 +01:00
David Pedersen
562fa206f0
Release axum, axum-extra, axum-macros (#1875) 2023-03-22 15:22:47 +01:00
David Pedersen
03e8bc77f1
Implement IntoResponse for MultipartError (#1861) 2023-03-21 08:24:06 +00:00
David Pedersen
8e1eb8979f
Update to syn 2 (#1862) 2023-03-18 19:23:27 +00:00
David Pedersen
1133425d6b
Release axum, axum-macros, and axum-extra (#1843) 2023-03-13 11:00:13 +01:00
David Pedersen
bc3c35ea5a
Release all the crates (#1812) 2023-03-03 18:16:24 +01:00
John Downey
db22b7309d
Remove remnants of spa feature (#1802)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-03-03 14:43:19 +00:00
David Pedersen
5606ea3f9e
#[must_use] all the things! (#1809) 2023-03-03 14:12:35 +01:00
Dan Handrea
e167cfc325
Implement Clone for CookieJar, PrivateCookieJar and SignedCookieJar (#1808) 2023-03-03 11:13:25 +00:00
David Pedersen
aa2cbf6920
Add axum_extra::extract::Multipart (#1692) 2023-03-03 10:15:09 +01:00
Rob
68bf8ed7fc
Update documentation for FailedToDeserializeQueryString response type (#1795) 2023-02-27 22:29:39 +00:00
David Pedersen
08bac36519
Release axum and axum-extra (#1788) 2023-02-27 09:41:11 +01:00
David Pedersen
27f05ad32e
Remove SpaRouter (#1784) 2023-02-25 11:05:23 +01:00
David Pedersen
f726f16b6d
Update to tower-http 0.4 (#1783) 2023-02-24 20:51:30 +00:00
David Pedersen
6a4825bb22
Rename ProtoBuf to Protobuf (#1763)
Co-authored-by: Allan <al@ayz.ai>
2023-02-24 21:40:42 +01:00
David Pedersen
e6ff0281ae
Try cargo public-api-crates on CI (#1761) 2023-02-16 22:41:41 +01:00
David Pedersen
c18ff9dd63
Release axum, axum-extra, and axum-macros (#1750) 2023-02-12 12:40:42 +01:00
David Pedersen
c454e37a1c
Update to cookie 0.17 (#1747) 2023-02-12 08:26:37 +01:00
Jonas Platte
2c9d2dea0e
Upgrade dependencies (#1746) 2023-02-11 23:36:40 +00:00
David Pedersen
37922ab840
Add option_layer (#1696) 2023-02-11 23:11:21 +00:00
David Pedersen
b4204e223d
Add TypedPath::with_query_params (#1744) 2023-02-11 22:10:07 +00:00
Jonas Platte
7ecf8bd6cf
Use implicit format-args captures where applicable (#1709) 2023-01-20 12:04:49 +01:00
David Pedersen
e3aaeb3cb7
Release axum, axum-core, and axum-macros (#1688) 2023-01-09 13:54:49 +01:00
Eray Karatay
949da2b300
axum-extra: Add serde_json as dev-dependency (#1673) 2023-01-03 21:14:24 +01:00
avdb
ea6eb81d6f
Typo fixes (#1628) 2022-12-08 17:50:59 +00:00
David Pedersen
ee3cb971f7
axum-extra v0.4.2 (#1609) 2022-12-02 10:55:11 +00:00
David Pedersen
7386e5d185
Bug fixes for RouterExt:{route_with_tsr, route_service_with_tsr} (#1608)
* Bug fixes for `RouterExt:{route_with_tsr, route_service_with_tsr}`

* changelog link
2022-12-02 11:42:49 +01:00
Allan
b1f7ee938d
Update axum-extra feature flag table (#1594) 2022-11-29 22:11:36 +00:00
David Pedersen
2121979a48
axum-extra - v0.4.1 (#1590) 2022-11-29 10:57:25 +01:00
David Pedersen
c7985b7858
Fix wrong From impl for Resource (#1589)
Really not sure how this got past the tests.
2022-11-29 09:35:26 +00:00
David Pedersen
1b6780cf6c
axum 0.6 and friends 🎉 (#1570)
* changelog

* bump versions

* reorder changelogs a bit

* Apply suggestions from code review

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

* Expand fallback inheritance

* Reword tsr

* Mention `parse-body-based-on-content-type` example

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-11-25 12:29:58 +00: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
walfie
7d0bb28876
Minor doc fixes (#1562) 2022-11-22 07:08:18 +00:00
Santiago Fraire Willemoes
ddee1c1d1a
docs: add how to use Arc<AppState> with the cookies examples (#1560) 2022-11-21 14:17:32 +01:00
David Pedersen
99c0224a7c
axum-extra 0.4.0-rc.3 (#1545)
* axum-extra 0.4.0-rc.3

Needs a new release because it uses the old state inheritance whic is
removed in the latest rc.

* fix
2022-11-19 13:02:11 +01:00