Commit Graph
57 Commits
Author SHA1 Message Date
Jonas Platte 47791cb593 Remove versions from internal dev-dependencies
This breaks the cyclic dependencies for publishing.
2024-10-05 11:44:31 +00:00
Jonas Platte 9a69e415fb Release axum 0.8.0-alpha.1 and related crates (#2958) 2024-10-05 11:20:05 +02: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
Jonas Platte 689ca1aea2 Update MSRV for all crates to 1.75 (#2943) 2024-09-28 21:21:41 +00:00
Jonas Platte 4b48f308c3 Merge branch 'v0.7.x' into main 2024-09-27 22:37:09 +02:00
Jonas Platte fe56a310ef Bump versions 2024-09-27 22:36:28 +02:00
Jonas Platte 2fb6cea732 Remove unused dependencies from examples (#2934) 2024-09-25 03:44:47 -04:00
Jonas Platte a73dab417d Bump versions 2024-09-20 21:25:30 +02:00
yhx-12243 f1723890cb Avoid reallocation for String body extraction (#2857) 2024-09-20 21:14:42 +02:00
Jonas Platte d2d74f6ad1 Upgrade tower and tower-http 2024-09-20 20:57:12 +02:00
Jonas Platte 5201798d4e Enable diagnostic attributes for Rust 1.78+ (#2693) 2024-04-30 11:05:38 -04: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 Pedersen 9ebd105d04 Release (#2510) 2024-01-13 14:31:03 +01:00
David Pedersen fe89ab5592 Release (#2461) 2023-12-29 17:47:06 +01:00
David Pedersen ab36eda6aa Release axum and axum-core (#2402) 2023-12-04 09:16:15 +01:00
David Pedersen 89bba9489a Note which crates in our public API are 1.0
So we know at least which other crates have to 1.0 before axum can be,
or which we have to remove from our public API.
2023-11-27 11:53:05 +01:00
David Pedersen b7d14d3602 Release axum 0.7 (#2354) 2023-11-27 09:30:38 +01:00
43b14a5f02 Update to latest versions of hyper and http-body (#1882)
Co-authored-by: Michael Scofield <[email protected]>
Co-authored-by: Jonas Platte <[email protected]>
2023-11-23 11:03:03 +00:00
David Pedersen 449e4c1138 Add docsrs feature to axum-core and axum-macros (#2164) 2023-09-16 19:47:49 +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 72c1b7a80c Add Body::from_stream (#1848) 2023-04-21 17:45:31 +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
David Pedersen 8e1eb8979f Update to syn 2 (#1862) 2023-03-18 19:23:27 +00:00
Jonas Platte f65fa22f34 Improve tower-http doc links (#1842) 2023-03-12 11:15:58 +01:00
David Pedersen bc3c35ea5a Release all the crates (#1812) 2023-03-03 18:16:24 +01:00
Spencer Bartholomew 6067223fcc update tokio dep to fix potential security vulnerability (#1787) 2023-02-27 18:40:03 +01:00
David Pedersen f726f16b6d Update to tower-http 0.4 (#1783) 2023-02-24 20:51:30 +00:00
David Pedersen e6ff0281ae Try cargo public-api-crates on CI (#1761) 2023-02-16 22:41:41 +01:00
David Pedersen 6ff6b36293 Release axum and axum-core (#1716) 2023-01-20 23:51:19 +01:00
David Pedersen e3aaeb3cb7 Release axum, axum-core, and axum-macros (#1688) 2023-01-09 13:54:49 +01:00
David PedersenandJonas Platte 1aa357c879 Misc documentation improvements (#1647)
Co-authored-by: Jonas Platte <[email protected]>
2023-01-07 14:07:54 +01:00
David PedersenandJonas Platte 1b6780cf6c axum 0.6 and friends 🎉 (#1570)
* changelog

* bump versions

* reorder changelogs a bit

* Apply suggestions from code review

Co-authored-by: Jonas Platte <[email protected]>

* Expand fallback inheritance

* Reword tsr

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

Co-authored-by: Jonas Platte <[email protected]>
2022-11-25 12:29:58 +00:00
d5de3bc7e3 Improve compile errors for unimplemented traits (#1436)
* Improve `debug_handler` to use the correct span for specific bounds

This results in better localised error messages, as they now point
directly to the corresponding argument instead of to the macro itself.

* Improve some error messages behind a `nightly-error-messages` feature
flag

This uses the nightly only `rustc_on_unimplemented` attribute to improve
some error messages when users try to use invalid handler functions.
This should be seen as prove of concept, not as full solution for all
potential error cases.

The underlying feature is currently marked as permanently unstable, but
I'm working on getting this specific attribute (or an attribute with
different name, similar functionality) ready to work on a stable compiler.

* Apply suggestions from code review

Co-authored-by: Jonas Platte <[email protected]>

* Enable the `nightly-error-messages` feature unconditionally for nightly compilers

* Use a nightly compiler to run the axum-marcos compile fail tests

* update to newer nightly

* Run axum-macros tests on nightly

* tweak compile error hints a bit

* more tweaks

* update test

Co-authored-by: Jonas Platte <[email protected]>
Co-authored-by: David Pedersen <[email protected]>
2022-11-19 12:45:03 +01:00
David PedersenandJonas Platte e39d053d2f New release candidates (#1514)
* New release candidates

* Update axum/Cargo.toml

Co-authored-by: Jonas Platte <[email protected]>

Co-authored-by: Jonas Platte <[email protected]>
2022-11-09 09:01:47 +01:00
David PedersenandJonas Platte 54d8439e35 Ship rc.2 (#1363)
* rc.2

* don't bump version of axum-macros

* fix

* Update axum/Cargo.toml

Co-authored-by: Jonas Platte <[email protected]>

* undo release of axum-extra

* fix

Co-authored-by: Jonas Platte <[email protected]>
2022-09-11 16:42:04 +02:00
David Pedersen 759e988747 Limit size of request bodies in Bytes extractor (#1346)
* Apply default limit to request body size

* Support disabling the default limit

* docs

* changelog
2022-09-10 06:36:30 +00:00
David Pedersen b315b60bca Bump version of all crates (#1310)
* Bump version of all crates

* use the right versions inside the workspace
2022-08-23 22:57:13 +02:00
Jonas Platte 141198ce19 Declare MSRV in Cargo manifests, not .clippy.toml (#1206) 2022-07-28 15:31:47 +02:00
David Pedersen 7deaff7e1e axum-core: Version 0.2.6 (#1103) 2022-06-18 11:00:19 +02: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 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 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 5be73c1064 axum-core: Version 0.2.4 (#984) 2022-05-02 11:52:24 +02:00
David Pedersen 5bb924b3a2 Implement IntoResponse and IntoResponseParts for http::Extensions (#975)
* Implement `IntoResponse` and `IntoResponseParts` for `http::Extensions`

Requires a new release of `http`.

* remove http patch

* changelog ref
2022-04-29 17:28:24 +02:00
David Pedersen 0702c59c7d axum-core: Version 0.2.3 (#966) 2022-04-26 14:19:47 +00:00
David Pedersen 598e6935df axum-core: Version 0.2.2 2022-04-19 16:17:52 +02:00
David Pedersen bcda1a97db axum-core: Version 0.2.1 2022-04-03 20:21:16 +02:00