Releases: tokio-rs/axum
Releases · tokio-rs/axum
axum-core - v0.4.3
- added: Implement
IntoResponsePartsfor()(#2471)
axum - v0.7.3
- added:
BodyimplementsFrom<()>now (#2411) - change: Update version of multer used internally for multipart (#2433)
- change: Update tokio-tungstenite to 0.21 (#2435)
- added: Enable
tracingfeature by default (#2460) - added: Support graceful shutdown on
serve(#2398) - added:
RouterIntoServiceimplementsClone(#2456)
axum-extra - v0.9.1
axum-core - v0.4.2
- added:
BodyimplementsFrom<()>now (#2411)
axum - v0.7.2
axum-core - v0.4.1
- Fix from_stream doc link to
Streamin docs (#2391)
axum - v0.7.1
- fix: Fix readme.
axum - v0.7.0
- breaking: Update public dependencies. axum now requires
- breaking: axum now requires tower-http 0.5
- breaking: Remove deprecated
WebSocketUpgrade::max_send_queue - breaking: The following types/traits are no longer generic over the request body
(i.e. theBtype param has been removed) (#1751 and #1789):FromRequestPartsFromRequestHandlerServiceHandlerWithoutStateExtHandlerLayeredFutureLayeredMethodRouterNextRequestExtRouteFutureRouteRouter
- breaking: axum no longer re-exports
hyper::Bodyas that type is removed
in hyper 1.0. Instead axum has its own body type ataxum::body::Body(#1751) - breaking:
extract::BodyStreamhas been removed asbody::Body
implementsStreamandFromRequestdirectly (#1751) - breaking: Change
sse::Event::json_datato useaxum_core::Erroras its error type (#1762) - breaking: Rename
DefaultOnFailedUpdgradetoDefaultOnFailedUpgrade(#1664) - breaking: Rename
OnFailedUpdgradetoOnFailedUpgrade(#1664) - breaking:
TypedHeaderhas been move toaxum-extra(#1850) - breaking: Removed re-exports of
EmptyandFull. Use
axum::body::Body::emptyandaxum::body::Body::fromrespectively (#1789) - breaking: The response returned by
IntoResponse::into_responsemust use
axum::body::Bodyas the body type.axum::response::Responsedoes this
(#1789) - breaking: Removed the
BoxBodytype alias and itsbox_body
constructor. Useaxum::body::Body::newinstead (#1789) - breaking: Remove
RawBodyextractor.axum::body::BodyimplementsFromRequestdirectly (#1789) - breaking: The following types from
http-bodyno longer implementIntoResponse:Full, useBody::frominsteadEmpty, useBody::emptyinsteadBoxBody, useBody::newinsteadUnsyncBoxBody, useBody::newinsteadMapData, useBody::newinsteadMapErr, useBody::newinstead
- added: Add
axum::extract::Requesttype alias where the body isaxum::body::Body(#1789) - added: Add
Router::as_serviceandRouter::into_serviceto workaround
type inference issues when callingServiceExtmethods on aRouter(#1835) - breaking: Removed
axum::Serveras it was removed in hyper 1.0. Instead
useaxum::serve(listener, service)or hyper/hyper-util for more configuration options (#1868) - breaking: Only inherit fallbacks for routers nested with
Router::nest.
Routers nested withRouter::nest_servicewill no longer inherit fallbacks (#1956) - fixed: Don't remove the
Sec-WebSocket-Keyheader inWebSocketUpgrade(#1972) - added: Add
axum::extract::Query::try_from_uri(#2058) - added: Implement
IntoResponseforBox<str>andBox<[u8]>([#2035]) - breaking: Simplify
MethodFilter. It no longer uses bitflags (#2073) - fixed: Fix bugs around merging routers with nested fallbacks (#2096)
- fixed: Fix
.source()of composite rejections (#2030) - fixed: Allow unreachable code in
#[debug_handler](#2014) - change: axum's MSRV is now 1.66 (#1882)
- added: Implement
IntoResponsefor(R,) where R: IntoResponse(#2143) - changed: For SSE, add space between field and value for compatibility (#2149)
- added: Add
NestedPathextractor (#1924) - added: Add
handle_errorfunction to existingServiceExttrait (#2235) - breaking:
impl<T> IntoResponse(Parts) for Extension<T>now requires
T: Clone, as that is required by the http crate (#1882) - added: Add
axum::Json::from_bytes(#2244) - added: Implement
FromRequestPartsforhttp::request::Parts(#2328) - added: Implement
FromRequestPartsforhttp::Extensions(#2328) - fixed: Clearly document applying
DefaultBodyLimitto individual routes (#2157)
axum-macros - v0.4.0
axum-extra - v0.9.0
- added:
OptionalQueryextractor (#2310) - added:
TypedHeaderwhich used to be inaxum(#1850) - breaking: Update to prost 0.12. Used for the
Protobufextractor - breaking: Make
tokioan optional dependency - breaking: Upgrade
cookiedependency to 0.18 (#2343) - breaking: Functions and methods that previously accepted a
Cookie
now accept anyT: Into<Cookie>(#2348)