Commit Graph
809 Commits
Author SHA1 Message Date
David Pedersen 2c00e61d82 axum 0.5.17 (#1494) axum-v0.5.17 2022-10-20 21:03:05 +02:00
David Pedersen 23ded07e51 axum-core 0.2.9 (#1490) axum-core-v0.2.9 2022-10-20 20:43:44 +02:00
Jonas Platte 48036a65d8 Update deny.toml 2022-10-20 20:02:46 +02:00
Jonas Platte 3ea4e305a5 Update expected stderr of trybuild test (#1402) 2022-10-20 20:02:46 +02:00
Jonas Platte e021440509 Update axum/CHANGELOG.md 2022-10-20 20:02:46 +02:00
Jonas Platte f5fc4a13d4 Add Error::into_inner (#1476) 2022-10-20 20:02:46 +02:00
David Pedersen e2fa9ae696 Document differences between DefaultBodyLimit and RequestBodyLimit (#1461) 2022-10-20 20:02:46 +02:00
David Pedersen c8693498c1 Add DefaultBodyLimit::max to change the body size limit (#1397) 2022-10-20 20:02:46 +02:00
Jonas Platte 9991b85f1f Use regular non-exhaustive debug representation instead of custom one (#1380) 2022-10-20 20:02:46 +02:00
Jonas Platte 177c50ca7a Relax bounds on Multipart FromRequest implementation (#1379) 2022-10-20 20:02:46 +02:00
Jonas Platte d3c5211967 Add must_use attribute to Redirect type (#1356) 2022-10-20 20:02:46 +02:00
David Pedersen a6a3b08570 Tweak layer and route_layer docs (#1307) 2022-10-20 20:02:46 +02:00
David Pedersen 29fea3a483 Annotate panicking functions with #[track_caller] (#1248) 2022-10-20 20:02:46 +02:00
David Pedersen e5f7012fe2 Document browsers ignoring SSE events without data fields (#1242)
* Document browsers ignoring SSE events without data fields

* only add note on `Event::data`
2022-10-20 20:02:46 +02:00
David Pedersen 31f9f5d259 Add "Ordering" link to middleware table of contents (#1241)
Seems I forgot to add it.
2022-10-20 20:02:46 +02:00
Jonas Platte f424c9d512 Fix intra-doc links on docs.rs (#1205)
* Use version 2 of Cargo's feature resolver

* Increase minimum version of tungstenite

Tungstenite 0.17.1 has a higher MSRV, and there should be no reason to
use it over 0.17.2.

* Clean up and fix MSRV CI job

* Fix some intra-doc links not resolving correctly on docs.rs

* Bump minimum version of tower

… to avoid dependencies with a broken minimum-versions chain.
2022-10-20 20:02:46 +02:00
Jonas Platte 7d740866e6 Fix a typo in axum_extra::extract::Query docs (#1201) 2022-10-20 20:02:46 +02:00
Péter Leéh ec428f5f5a Fix comment typos in stream-to-file example (#1200) 2022-10-20 20:02:46 +02:00
Jonas Platte 04e0a9e31b Clean up extra space in axum/CHANGELOG.md 2022-10-20 20:02:46 +02:00
David Pedersen 5cb53b23ec Add missing changelog link 2022-09-10 10:31:57 +02:00
David Pedersen 76f7688383 axum: Version 0.5.16 axum-v0.5.16 2022-09-10 10:00:11 +02:00
David Pedersen fcc1c9d94d axum-core: Version 0.2.8 axum-core-v0.2.8 2022-09-10 09:57:33 +02:00
David PedersenandJonas Platte 95e21c1940 Limit size of request bodies in Bytes extractor (#1362)
* Limit size of request bodies in `Bytes` extractor (#1346)

* Apply default limit to request body size

* Support disabling the default limit

* docs

* changelog

* fix doc test

* fix docs links

* Avoid unhelpful compiler suggestion (#1251)

Co-authored-by: Jonas Platte <[email protected]>
2022-09-10 09:55:28 +02:00
David Pedersen 3990c3a6eb axum-extra: Version 0.3.7 (#1236) axum-extra-v0.3.7 2022-08-09 17:12:32 +02:00
David Pedersen 849abb1ad8 axum: Version 0.5.15 (#1235) axum-v0.5.15 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
axum-v0.5.14
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
axum-v0.5.13
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 axum-v0.5.12 2022-07-10 15:08:06 +02:00
David Pedersen ed398c181e axum-core: Version 0.2.7 (#1150) axum-core-v0.2.7 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
Dominik Spicher d11f3fbeea Fix typos in RequestParts docstrings (#1147) 2022-07-10 14:31:20 +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) axum-v0.5.11 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
NicolaLSandDavid 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 305331e618 axum-extra: Version 0.3.6 (#1139) axum-extra-v0.3.6 2022-07-02 11:38:18 +02:00
David Pedersen c6db0973d4 Update trybuilds for rust 1.62 2022-07-02 11:34:35 +02:00
Jonas Platte 98f64686e0 docsrs cfg fixes (#1137)
* Remove unused attribute in axum-core

* Fix docs.rs package metadata for axum-extra
2022-07-02 11:04:57 +02:00
David Pedersen 7e794e9d1d axum: Version 0.5.10 (#1128) axum-v0.5.10 2022-06-28 21:32:39 +02:00
David PedersenandJonas 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 905bbfb8e2 axum-extra: Version 0.3.5 (#1125) axum-extra-v0.3.5 2022-06-27 21:08:12 +02:00
David Pedersen b10c9d34bd axum-macros: Version 0.2.3 (#1126) axum-macros-v0.2.3 2022-06-27 21:06:59 +02:00