David Pedersen
849abb1ad8
axum: Version 0.5.15 ( #1235 )
2022-08-09 16:55:51 +02:00
David Pedersen
3215709fcd
Fix accidental breaking change to FailedToDeserializeQueryString ( #1233 )
...
Fixes #1202
I'll update the changelogs, with notes about why 0.5.14 was yanked, in
the release PR.
2022-08-09 16:06:26 +02:00
David Pedersen
e6a75a22ec
axum: Version 0.5.14 ( #1193 )
...
Backports these PRs to 0.5.x
- #1192
- #1185
- #1178
- #1171
2022-07-25 20:45:52 +02:00
David Pedersen
2d5ac3e8b9
Update changelog
2022-07-25 20:23:34 +02:00
David Pedersen
5e2c78215f
Improve build times by generating less IR ( #1192 )
...
* example
* `MethodRouter::merge`
* `set_content_length` and `set_allow_header`
* `MethodRouter::on_service_boxed_response_body`
* `Router::route`
* `MethodRouter::merge` again
* `MethodRouter::on_service_boxed_response_body`
* `Router::call_route`
* `MethodRouter::{layer, route_layer}`
* revert example
* fix test
* move function to method on `AllowHeader`
2022-07-25 20:17:34 +02:00
Marek Kuskowski
592dc5f7f9
Add ws example showing how to pass data to callback ( #1185 )
2022-07-25 20:10:37 +02:00
Jonas Platte
ab1ccf8812
Serialize Json<T> to Bytes instead of Vec<u8> in IntoResponse ( #1178 )
2022-07-25 20:10:33 +02:00
SzudemJ
9b620e6239
Avoid exposure of type names by QueryRejection ( #1171 )
2022-07-25 20:10:27 +02:00
David Pedersen
b7e70a2787
axum: Version 0.5.13 ( #1164 )
...
Backports #1135 to 0.5.x
2022-07-15 12:12:12 +02:00
David Pedersen
e2ff65fd7c
Return rejection if WebSocket request couldn't be upgraded ( #1135 )
...
* Return rejection if `WebSocket` request couldn't be upgraded
* make rejection about connection upgrades
* changelog links
2022-07-15 11:28:59 +02:00
David Pedersen
27786a5fef
axum: Version 0.5.12
2022-07-10 15:08:06 +02:00
David Pedersen
ed398c181e
axum-core: Version 0.2.7 ( #1150 )
2022-07-10 15:06:13 +02:00
David Pedersen
2f8797d382
Add http-server as crates.io subcategory
2022-07-10 14:31:41 +02:00
David Pedersen
a4a298cf88
Re-export debug_handler from axum ( #1144 )
...
* Re-export `debug_handler` from axum
Fixes #1143
* also axum-extra
2022-07-10 14:31:03 +02:00
David Pedersen
a05f6a0519
axum: Version 0.5.11 ( #1141 )
2022-07-02 17:44:32 +02:00
David Pedersen
02fc7c3d6d
Clean up changelog a bit
2022-07-02 11:49:42 +02:00
David Pedersen
0517d92cb3
Document running extractors from middleware ( #1140 )
...
Fixes #1134
2022-07-02 11:48:52 +02:00
NicolaLS and David Pedersen
f1a0c26cb2
Implement TryFrom<Method> for MethodFilter ( #1130 )
...
* implement TryFrom<http::Method> for MethodFilter
* test for TryFrom<http::Method> for MethodFilter
* 'UnsupportedMethod' error type for MethodFilter
* Log TryFrom<http::Method> for MethodFilter
* adjust docs
* move docs
Co-authored-by: David Pedersen <[email protected] >
2022-07-02 11:48:39 +02:00
David Pedersen
7e794e9d1d
axum: Version 0.5.10 ( #1128 )
2022-06-28 21:32:39 +02:00
David Pedersen and Jonas Platte
a8d0ce8c03
Fix possible panic when doing trailing slash redirect ( #1124 )
...
* Fix possible panic when doing trailing slash redirect
Fixes https://github.com/tokio-rs/axum/issues/1122
* changelog link
* Update axum/src/routing/mod.rs
Co-authored-by: Jonas Platte <[email protected] >
Co-authored-by: Jonas Platte <[email protected] >
2022-06-28 16:58:13 +02:00
David Pedersen
f6b1d35c51
Use minimal dependency versions for MSRV tests on CI ( #1109 )
2022-06-27 20:44:20 +02:00
David Pedersen and Jonas Platte
cb207472f4
Make Router faster to clone ( #1123 )
...
* Make `Router` faster to clone
* changelog
* Update axum/src/routing/mod.rs
Co-authored-by: Jonas Platte <[email protected] >
* fix
* Update axum/src/routing/mod.rs
Co-authored-by: Jonas Platte <[email protected] >
Co-authored-by: Jonas Platte <[email protected] >
2022-06-27 11:00:19 +02:00
David Pedersen
fabb205a9e
axum: Version 0.5.9 ( #1108 )
2022-06-20 13:44:15 +02:00
David Pedersen
7f203b96e6
Fix build with form feature without headers feature ( #1107 )
...
Fixes #1106
2022-06-20 09:14:21 +02:00
David Pedersen
5ac0b2b3d7
axum: Version 0.5.8 ( #1104 )
2022-06-18 11:38:52 +02:00
David Pedersen
7deaff7e1e
axum-core: Version 0.2.6 ( #1103 )
2022-06-18 11:00:19 +02:00
Jonas Platte
1812c4dfe8
Remove explicit TryFrom, TryInto imports ( #1099 )
2022-06-17 18:36:49 +00:00
David Pedersen
2f64064650
Implement IntoResponse for Form ( #1095 )
2022-06-17 18:23:57 +00:00
David Pedersen
93251fa203
Bump MSRV to 1.56 and update to the 2021 edition ( #1098 )
2022-06-17 20:11:35 +02:00
David Pedersen
ad67289226
Add table of contents to some modules ( #1084 )
2022-06-14 14:10:04 +02:00
David Pedersen and Jonas Platte
dbdbd0165e
Support Forwarded in Host extractor ( #1078 )
...
* Support `Forwarded` in `Host` extractor
* changelog
* Update axum/src/extract/host.rs
Co-authored-by: Jonas Platte <[email protected] >
* look for `host` key
Co-authored-by: Jonas Platte <[email protected] >
2022-06-10 22:30:01 +02:00
David Pedersen
f66893fbda
Add missing version for serde_json in Cargo.toml
...
No idea how that went away
2022-06-10 16:57:53 +02:00
David Pedersen
968ee44631
Sort dependencies in Cargo.tomls ( #1076 )
...
* sort dependencies
* check sorted deps on CI
* this should fail
* does caching matter?
* fix sorting
2022-06-10 08:59:17 +02:00
David Pedersen
453202b490
Document all cargo features ( #1079 )
2022-06-10 08:46:09 +02:00
David Pedersen
b6a2d9dba7
Use consistent todo comment casing
2022-06-09 20:47:23 +02:00
David Pedersen
7aa3f35129
axum: Version 0.5.7 ( #1075 )
2022-06-08 16:08:11 +02:00
David Pedersen
a9eb4ac527
axum-core: Version 0.2.5 ( #1073 )
2022-06-08 15:56:56 +02:00
David Pedersen
ef750799fa
Automatically handle http_body::LengthLimitError ( #1048 )
...
* Automatically handle `http_body::LengthLimitError`
* add tower-http dev dep to axum-core
* just make it a link
* Make `FailedToBufferBody` an enum
* Fix tests now that tower-http handles `Content-Length`
* Bring back explanation for `LengthLimitError`
* remove todo we likely can't fix
* improve wording in docs
2022-06-08 13:47:57 +00:00
David Pedersen
115a47b191
Remove tower's buffer feature ( #1071 )
...
Turns out we're not using it anymore and it saves depending on tokio-util.
2022-06-08 07:58:56 +00:00
David Pedersen
0936a246bf
Add extract::ws::close_code which contains constants for close codes ( #1067 )
...
The values and docs are copied from [tungstenite].
Fixes #1061
[tungstenite]: https://docs.rs/tungstenite/0.17.2/src/tungstenite/protocol/frame/coding.rs.html#119-188
2022-06-08 09:36:59 +02:00
David Pedersen
8ff275499b
Add #1049 to changelogs
2022-06-06 18:00:52 +02:00
Luca Barbato
bdfa3887f1
Fix a typo ( #1064 )
2022-06-03 08:30:48 +02:00
David Pedersen
6c10f41d94
Support Path<Vec<(String, String)>> ( #1059 )
...
* Support `Path<Vec<(String, String)>>`
* changelog
2022-05-27 14:11:33 +02:00
David Pedersen
19fe93262f
Use impl IntoResponse less in docs ( #1049 )
2022-05-22 13:41:29 +02:00
Christofer Nolander
d7c4e2f807
Implement Default for Extension ( #1043 )
2022-05-18 15:44:08 +00:00
David Pedersen
316e20fbd9
axum: Version 0.5.6 ( #1033 )
2022-05-15 23:05:00 +02:00
David Pedersen
178e1801e9
Add axum_extra::extract::Form ( #1031 )
...
* Add `axum_extra::extra::Form`
* update tokio-util ban
2022-05-15 15:17:45 +00:00
Kosta
d37b93a3c4
Dont link to deprecated item with different name ( #1028 )
2022-05-12 12:06:13 +00:00
David Pedersen
0b856b938f
Document "debugging handler type errors" on Handler ( #1024 )
2022-05-11 20:56:57 +02:00
David Pedersen and Jonas Platte
08cbade3cb
Improve Path error when its extracted multiple times ( #1023 )
...
* Improve `Path` error
* Improve docs
* changelog
* Update axum/src/extract/path/mod.rs
Co-authored-by: Jonas Platte <[email protected] >
* fix test
Co-authored-by: Jonas Platte <[email protected] >
2022-05-11 11:38:37 +02:00