David Pedersen
16ef59b6ce
update examples
2022-07-03 21:47:23 +02:00
David Pedersen
02f9ebaee9
checkpoint
2022-07-03 21:07:29 +02:00
David Pedersen
7e30205205
fix some todos
2022-07-03 20:19:21 +02:00
David Pedersen
e03cea82d2
check point
2022-07-03 17:06:30 +02:00
David Pedersen
5deef529ae
checkpoint
2022-07-03 16:57:44 +02:00
David Pedersen
a7749d2bf2
Merge branch 'separate-nesting-opaque-services' into separate-nesting-opaque-services--router-state
2022-07-03 16:50:53 +02:00
David Pedersen
ca95dd6852
Merge branch 'main' into separate-nesting-opaque-services
2022-07-03 16:50:42 +02:00
David Pedersen
2e80ebd18d
Support running extractors from middleware::from_fn
2022-07-03 16:49:20 +02:00
David Pedersen
15bd25bcd1
checkpoint
2022-07-03 16:45:54 +02:00
David Pedersen
4b6c18145d
make Router:state
private
2022-07-03 16:29:53 +02:00
David Pedersen
90e9b34736
checkpoint
2022-07-03 16:21:43 +02:00
David Pedersen
a5b6b94530
checkpoint
2022-07-03 15:56:48 +02:00
David Pedersen
63560e0299
checkpoint
2022-07-03 13:18:27 +02:00
David Pedersen
4ecdcf691e
check point
2022-07-03 03:17:52 +02:00
David Pedersen
a09fe48693
checkpoint
2022-07-03 00:58:33 +02:00
David Pedersen
43169f96cd
add state parameter to router
2022-07-03 00:44:19 +02:00
David Pedersen
f8c8f5b697
Add note about breaking changes to readme
2022-07-02 11:46:53 +02:00
David Pedersen
eff3b716d3
Document running extractors from middleware ( #1140 )
...
Fixes #1134
2022-07-02 09:44:17 +00:00
Jonas Platte
8c31bee9bc
docsrs cfg fixes ( #1137 )
...
* Remove unused attribute in axum-core
* Fix docs.rs package metadata for axum-extra
2022-07-01 13:35:52 +02:00
NicolaLS
34146f3139
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 <david.pdrsn@gmail.com>
2022-07-01 08:37:41 +00:00
David Pedersen
698b5ccf39
Update trybuilds for rust 1.62
2022-07-01 10:24:15 +02:00
David Pedersen
7ed35d2b5f
Merge branch 'main' into separate-nesting-opaque-services
2022-06-30 00:30:22 +02:00
David Pedersen
bbf1852c56
Apply suggestions from code review
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-06-30 00:26:49 +02:00
David Pedersen
a4c820420d
Remove trailing slash redirects ( #1119 )
...
* Prepare axum-next branch
* Remove deprecated `extractor_middleware` function (#1077 )
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#948 )
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924 )
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`
Fixes https://github.com/tokio-rs/axum/issues/922
* changelog
* fixup changelog
* Panic on overlapping routes in `MethodRouter` (#1102 )
* Panic on overlapping routes in `MethodRouter`
* changelog link
* add test to ensure `head` and `get` don't overlap
* Fix changelog
* Prepare axum-next branch
* Remove trailing slash redirects
* changelog link
* Fix changelog
* remove asserting to make make the test more clear
* remove tsr related feature
* Add `RouterExt::route_with_tsr`
* Apply suggestions from code review
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
* Update axum-extra/src/routing/mod.rs
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
* fix typos in docs
* Update axum/CHANGELOG.md
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
* mention `RouterExt::route_with_tsr` in the changelog
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-06-30 00:22:43 +02:00
David Pedersen
657a0893b5
fix MatchedPath
with Router
s nested with nest_service
2022-06-29 22:48:44 +02:00
David Pedersen
fb5219f9cd
fix docs
2022-06-29 22:21:28 +02:00
David Pedersen
b22077862e
update changelog
2022-06-29 22:20:24 +02:00
David Pedersen
276a950b67
Only accept Router
in Resource::{nest, nest_collection}
2022-06-29 22:20:12 +02:00
David Pedersen
79daaf0e04
fix
2022-06-29 22:13:17 +02:00
David Pedersen
014067ebf3
update docs
2022-06-29 22:09:43 +02:00
David Pedersen
2c54bb5b3b
fix doc tests
2022-06-29 21:32:41 +02:00
David Pedersen
23721f213f
Merge branch 'main' into separate-nesting-opaque-services
2022-06-29 21:21:29 +02:00
David Pedersen
23808f72a2
Fix changelog
2022-06-28 22:07:10 +02:00
David Pedersen
2b386c0baa
Panic on overlapping routes in MethodRouter
( #1102 )
...
* Panic on overlapping routes in `MethodRouter`
* changelog link
* add test to ensure `head` and `get` don't overlap
2022-06-28 22:07:10 +02:00
David Pedersen
661473dcbc
Allow Error: Into<Infallible>
for Route::{layer, route_layer}
( #948 )
...
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924 )
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`
Fixes https://github.com/tokio-rs/axum/issues/922
* changelog
* fixup changelog
2022-06-28 22:07:10 +02:00
David Pedersen
56ddabcd7d
Remove deprecated extractor_middleware
function ( #1077 )
2022-06-28 22:07:10 +02:00
David Pedersen
7e794e9d1d
axum: Version 0.5.10 ( #1128 )
2022-06-28 21:32:39 +02:00
David Pedersen
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 <jplatte+git@posteo.de>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-06-28 16:58:13 +02:00
David Pedersen
905bbfb8e2
axum-extra: Version 0.3.5 ( #1125 )
2022-06-27 21:08:12 +02:00
David Pedersen
b10c9d34bd
axum-macros: Version 0.2.3 ( #1126 )
2022-06-27 21:06:59 +02:00
David Pedersen
11179b8033
Silence "unnecessary use of to_string
" lint for #[derive(TypedPath)]
( #1117 )
...
* Fix "unnecessary use of `to_string`" lint for `#[derive(TypedPath)]`
* changelog
* Update axum-macros/CHANGELOG.md
2022-06-27 18:57:02 +00:00
David Pedersen
f6b1d35c51
Use minimal dependency versions for MSRV tests on CI ( #1109 )
2022-06-27 20:44:20 +02:00
David Pedersen
cb207472f4
Make Router
faster to clone ( #1123 )
...
* Make `Router` faster to clone
* changelog
* Update axum/src/routing/mod.rs
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
* fix
* Update axum/src/routing/mod.rs
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-06-27 11:00:19 +02:00
David Pedersen
523c7fed88
Depend on right version of tokio-stream
2022-06-25 12:26:37 +02:00
David Pedersen
6b6a415622
Add JsonLines
extractor and response ( #1093 )
2022-06-20 20:49:18 +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
Marcus Griep
2e2988b77d
minor update to aliri crates ( #1101 )
2022-06-18 08:06:31 +02:00