David Pedersen
4c5068c01f
Add Send + Sync check to all services ( #277 )
...
Should prevent us accidentally introducing breaking changes.
Fixes https://github.com/tokio-rs/axum/issues/275
2021-08-26 20:59:55 +02:00
David Pedersen
f8a0d81d79
Remove tower from axum's public API ( #229 )
...
Instead rely on `tower-service` and `tower-layer`. `tower` itself is
only used internally.
Fixes https://github.com/tokio-rs/axum/issues/186
2021-08-21 15:01:30 +02:00
David Pedersen
971c0a394a
Revert "Simplify handler trait ( #221 )" ( #223 )
...
This reverts commit 44c58bdf5f .
2021-08-20 23:56:16 +02:00
David Pedersen
44c58bdf5f
Simplify handler trait ( #221 )
...
Rely on the `impl FromRequest for (T, ...)` rather than extracting things directly inside the macro.
2021-08-20 20:36:34 +02:00
David Pedersen
0fd17d4181
Bring back Handler::into_service ( #212 )
...
It was removed as part of https://github.com/tokio-rs/axum/pull/184 but
I do actually think it has some utility. So makes sense to keep even if
axum doesn't use it directly for routing.
2021-08-19 21:16:44 +02:00