- added: Add
RouterExt::route_with_tsr
for adding routes with an
additional "trailing slash redirect" route (#1119) - breaking:
Resource::nest
andResource::nest_collection
has been
removed. You can instead convert theResource
into aRouter
and
add additional routes as necessary (#1086) - changed: For methods that accept some
S: Service
, the bounds have been
relaxed so the response type must implementIntoResponse
rather than being a
literalResponse
- added: Support chaining handlers with
HandlerCallWithExtractors::or
(#1170) - change: axum-extra's MSRV is now 1.60 (#1239)
- breaking:
SignedCookieJar
andPrivateCookieJar
now extracts the keys
from the router's state, rather than extensions - added: Add Protocol Buffer extractor and response (#1239)
- added: Add
Either*
types for combining extractors and responses into a
single type (#1263) - added:
WithRejection
extractor for customizing other extractors' rejections (#1262) - added: Add sync constructors to
CookieJar
,PrivateCookieJar
, and
SignedCookieJar
so they're easier to use in custom middleware - breaking:
Resource
has a newS
type param which represents the state (#1155) - breaking:
RouterExt::route_with_tsr
now only acceptsMethodRouter
s (#1155) - added:
RouterExt::route_service_with_tsr
for routing to anyService
(#1155)