Commit graph

394 commits

Author SHA1 Message Date
David Pedersen
5606ea3f9e
#[must_use] all the things! (#1809) 2023-03-03 14:12:35 +01:00
David Pedersen
5a58edac16
Fix routing issues when loading a Router via a dynamic library (#1806) 2023-03-03 13:23:53 +01:00
Jonas Platte
43883b8d9b
Replace weird doc paragraph by compiler-checked must_use attribute (#1801)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-03-03 08:54:38 +00:00
sharkspear94
73be489e03
Fixed small typo (#1804) 2023-03-03 09:43:24 +01:00
Rob
68bf8ed7fc
Update documentation for FailedToDeserializeQueryString response type (#1795) 2023-02-27 22:29:39 +00:00
Spencer Bartholomew
6067223fcc
update tokio dep to fix potential security vulnerability (#1787) 2023-02-27 18:40:03 +01:00
David Pedersen
08bac36519
Release axum and axum-extra (#1788) 2023-02-27 09:41:11 +01:00
Robin Stocker
37e2a7d5e7
docs: Clarify that state parameters need to come before body too (#1785) 2023-02-25 10:13:32 +00:00
David Pedersen
f726f16b6d
Update to tower-http 0.4 (#1783) 2023-02-24 20:51:30 +00:00
David Pedersen
37478772bc
Release axum (#1782) 2023-02-24 14:22:47 +01:00
David Pedersen
2cbaa63d9e
Add KeepAlive::event (#1729) 2023-02-23 13:14:29 +00:00
Hugh Mandalidis
1f224396a2
Add shared mutable state documentation (#1759)
Co-authored-by: Vagelis Prokopiou <vagelis.prokopiou@gmail.com>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-02-23 12:44:25 +00:00
Hugo
fa36b49769
Add hint for on further details for WebSocket (#1779) 2023-02-22 12:25:37 +00:00
David Pedersen
1e2567c39f
Fix missing Allow when middleware are applied to MethodRouter (#1773) 2023-02-20 22:54:44 +01:00
David Pedersen
277be8f813
axum 0.6.7 (#1768) 2023-02-17 15:07:23 +01:00
David Pedersen
bea84d2141 Add missing things back to changelog 2023-02-17 14:25:03 +01:00
David Pedersen
143c415955
Add MockConnectInfo (#1767) 2023-02-17 13:09:29 +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
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
Jonas Platte
2c9d2dea0e
Upgrade dependencies (#1746) 2023-02-11 23:36:40 +00:00
David Pedersen
0ecf5eeb19
Support passing MethodRouter to Router::fallback (#1730) 2023-02-11 23:11:55 +01:00
Cole
5c58b4ffde
Avoid unnecessary clones of state in MethodRouter (#1745) 2023-02-11 21:44:48 +00:00
David Pedersen
93ecabf449
Release axum and axum-macros (#1743) 2023-02-11 22:32:16 +01:00
David Pedersen
827140f0d7
Document gotchas with impl IntoResponse (#1736) 2023-02-07 21:28:00 +00:00
David Pedersen
6e6aa8f39e Don't use impl IntoResponse in readme 2023-02-07 17:57:28 +01:00
David Pedersen
4a5dc4391c
Release axum and axum-macros (#1721) 2023-01-24 13:31:33 +01:00
David Pedersen
47be78e0b3
Use map_while (#1720) 2023-01-24 12:49:36 +01:00
David Pedersen
6ff6b36293
Release axum and axum-core (#1716) 2023-01-20 23:51:19 +01:00
David Pedersen
5b07296001
Add RawPathParams (#1713) 2023-01-20 20:37:01 +00:00
David Pedersen
96b7d78a3f
Document required tokio features for example (#1715) 2023-01-20 20:26:40 +00:00
David Pedersen
7a52161826
Implement Clone and Service for Next (#1712) 2023-01-20 21:19:01 +01:00
Jonas Platte
7ecf8bd6cf
Use implicit format-args captures where applicable (#1709) 2023-01-20 12:04:49 +01:00
David Pedersen
8c081c20ab Remove accidentally committed dbg!s 2023-01-20 10:14: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
David Pedersen
607a20dfac
Support deserialize_any for Path (#1693) 2023-01-13 12:27:38 +00:00
David Pedersen
25a46fbe79 fixup changelog 2023-01-13 11:54:30 +01:00
valkyrie_pilot
e4c6d76bca
Implement IntoResponse for [u8; N] and &'static [u8; N] (#1690)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-01-13 09:12:51 +00:00
David Pedersen
e3aaeb3cb7
Release axum, axum-core, and axum-macros (#1688) 2023-01-09 13:54:49 +01:00
Austaras
6638b274db
Update to base64 0.20 (#1641) 2023-01-08 15:21:24 +00:00
David Pedersen
be9a8c0380
Document breaking changes related to nest (#1684) 2023-01-07 19:06:59 +01:00
David Pedersen
1aa357c879
Misc documentation improvements (#1647)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2023-01-07 14:07:54 +01:00
Paolo Barbolini
211de92d24
Enable the runtime feature of hyper when using tokio (#1671) 2023-01-06 12:28:31 +01:00
Tobias Bieniek
2d8242b2c5
docs/middleware: Add missing Clone derive on MyLayer (#1649) 2023-01-05 10:47:38 +00:00
Liigo Zhuang
978ae63358
Update extract.md (#1653) 2022-12-19 08:44:03 +01:00
Jonas Platte
b372244099
Guide people to the right places to ask questions (#1631)
* README: Link to discussions instead of issues in Getting Help section

* Link to Discussions and Discord on new issue page
2022-12-09 10:14:31 +01:00
Mario Kaufmann
e3d8868f99
Minor doc fixes (#1622) 2022-12-06 21:46:35 +00:00
David Pedersen
7e13d69639
Add status and body_text methods to built-in rejections (#1612)
* Add `status` and `body_text` methods to built-in rejections

This should make it easier to customize a built-in rejection while
preserving either the status or body.

Fixes https://github.com/tokio-rs/axum/issues/1611

* changelog
2022-12-02 19:54:16 +01:00
Cemre Mengu
5826ca268c
Add missing import of http in docs example (#1613) 2022-12-02 14:47:04 +00:00
tottoto
56d0dd9ec2
Update to tokio-tungstenite-0.18.0 and use sha1 (#1598) 2022-12-02 11:13:57 +01:00