Mikhail Antoshkin
c100650464
Fix items-after-test-module clippy warning on 1.75.0-beta.1 ( #2318 )
2023-11-16 07:15:16 +00:00
Yuri Astrakhan
17993c5717
A few clippy inspired changes ( #2233 )
2023-09-29 07:28:57 +00:00
Georg Semmler
2f6200dfbd
Use the diagnostic namespace ( #2246 )
2023-09-29 09:25:26 +02:00
Yuri Astrakhan
786329d85d
Use inline format args ( #2232 )
2023-09-19 06:51:57 +00:00
David Pedersen
449e4c1138
Add docsrs feature to axum-core and axum-macros ( #2164 )
2023-09-16 19:47:49 +00:00
David Pedersen
54e203cd51
Clearly document applying DefaultBodyLimit to individual routes ( #2157 )
2023-08-08 09:57:55 +00:00
Jonas Platte
ff3884aa41
Silence error from enabling nightly_error_messages
2023-08-08 11:27:45 +02:00
David Pedersen
cc611b8b24
Implement IntoResponse for (R,) where R: IntoResponse ( #2143 )
2023-08-03 18:15:06 +00:00
Jonas Platte
432289dd04
Replace :emoji: codes with the actual emoji ( #2144 )
2023-08-03 08:23:18 +00:00
Alexander van Ratingen
adb387a370
Implement IntoResponse for boxed slices ( #2035 )
2023-06-26 11:14:28 +00:00
Sabrina Jewson and David Pedersen
3c514ab0b4
Fix .source() of composite rejections ( #2030 )
...
Co-authored-by: David Pedersen <[email protected] >
2023-06-22 23:46:39 +02: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
173f9f72b0
Remove IntoResponse for http-body types ( #1877 )
2023-04-21 17:45:31 +02:00
6703f8634c
Remove B type param: Follow ups ( #1789 )
...
Co-authored-by: Jonas Platte <[email protected] >
Co-authored-by: Michael Scofield <[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
4e4c29175f
Remove B type param ( #1751 )
...
Co-authored-by: Jonas Platte <[email protected] >
Co-authored-by: Michael Scofield <[email protected] >
2023-04-21 17:45:31 +02:00
David Pedersen
e1eb7d6615
Add axum_core::body::Body ( #1584 )
2023-04-21 17:45:31 +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
David Pedersen
8e1eb8979f
Update to syn 2 ( #1862 )
2023-03-18 19:23:27 +00:00
Fredrik Enestad
eb49ea4bc1
Fix typo in extractors docs ( #1852 )
2023-03-14 17:14:26 +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
David Pedersen
5606ea3f9e
#[must_use] all the things! (#1809 )
2023-03-03 14:12:35 +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
25a46fbe79
fixup changelog
2023-01-13 11:54:30 +01:00
valkyrie_pilot and David Pedersen
e4c6d76bca
Implement IntoResponse for [u8; N] and &'static [u8; N] ( #1690 )
...
Co-authored-by: David Pedersen <[email protected] >
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
David Pedersen and Jonas Platte
1aa357c879
Misc documentation improvements ( #1647 )
...
Co-authored-by: Jonas Platte <[email protected] >
2023-01-07 14:07:54 +01: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
David Pedersen
eb2e933054
Expand the docs for Router::with_state ( #1580 )
2022-11-27 01:01:59 +01:00
David Pedersen and Jonas 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
Tshepang Mbambo
3ab3e5f91d
Use http re-export in docs ( #1554 )
2022-11-20 21:48:41 +01: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 Pedersen
64960bb19c
Type safe state inheritance ( #1532 )
...
* Make state type safe
* fix examples
* remove unnecessary `#[track_caller]`s
* Router::into_service -> Router::with_state
* fixup docs
* macro docs
* add missing docs
* fix examples
* format
* changelog
* Update trybuild tests
* Make sure fallbacks are still inherited for opaque services (#1540 )
* Document nesting routers with different state
* fix leftover conflicts
2022-11-18 11:02:58 +00:00
David Pedersen and Jonas 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 Pedersen
958d360ac4
Generalize AppendHeaders to accept any impl IntoIterator ( #1495 )
...
* Generalize `AppendHeaders` to accept any `impl IntoIterator`
* changelog
2022-10-20 21:05:04 +02:00
Jonas Platte
b378fb283f
Add Error::into_inner ( #1476 )
2022-10-13 11:44:54 +02:00
David Pedersen
9c0a89cd09
Add #[derive(FromRef)] ( #1430 )
...
* add `#[derive(FromRef)]`
* tests
* don't support skipping fields
probably wouldn't work at all since the whole state likely needs `Clone`
* UI tests
* changelog
* changelog link
* revert hello-world example, used for testing
* Re-export `#[derive(FromRef)]`
* Don't need to return `Result`
* use `collect` instead of quoting the iterator
* Mention it in axum's changelog
2022-10-10 18:40:14 +00:00
David Pedersen
1681ecf438
Copy changelogs from 0.5.x branch
2022-10-10 20:23:11 +02:00
David Pedersen
70833b9f4f
Document differences between DefaultBodyLimit and RequestBodyLimit ( #1461 )
...
* Document differences between `DefaultBodyLimit` and `RequestBodyLimit`
* fix grammar
* fix accidental force push
2022-10-10 17:43:05 +02:00
Jonas Platte and David Pedersen
b94248191e
Add RequestExt::{with_limited_body, into_limited_body} ( #1420 )
...
* Move RequestExt and RequestPartsExt into axum-core
* Add RequestExt::into_limited_body
… and use it for Bytes extraction.
* Add RequestExt::with_limited_body
… and use it for Multipart extraction.
Co-authored-by: David Pedersen <[email protected] >
2022-09-28 20:20:47 +00:00
David Pedersen
bf341fd034
Refactor all_the_tuples! macros ( #1413 )
2022-09-25 15:22:40 +02:00
David Pedersen
de9909d955
Add DefaultBodyLimit::max to change the body size limit ( #1397 )
2022-09-19 22:41:54 +02:00
David Pedersen and Jonas 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