- added: Add
RouterExt::route_with_tsr
for adding routes with an
additional "trailing slash redirect" route (#1119) - added: Support chaining handlers with
HandlerCallWithExtractors::or
(#1170) - 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 - changed: For methods that accept some
S: Service
, the bounds have been
relaxed so the return type can be any type that implementsIntoResponse
rather than being a
literalResponse
- change: axum-extra's MSRV is now 1.60 (#1239)
- breaking:
Form
has a new rejection type (#1496) - breaking:
Query
has a new rejection type (#1496) - breaking:
Resource::nest
andResource::nest_collection
have been
removed. You can instead convert theResource
into aRouter
and
add additional routes as necessary (#1086) - breaking:
SignedCookieJar
andPrivateCookieJar
now extracts the keys
from the router's state, rather than extensions - 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)