Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
=0.7.9
->=0.8.1
Release Notes
tokio-rs/axum (axum)
v0.8.0
: axum v0.8.0Compare Source
since rc.1
axum::extract::ws::Message
now usesBytes
in place ofVec<u8>
,and a new
Utf8Bytes
type in place ofString
, for its variants (#3078)OptionalFromRequestParts
impl forQuery
(#3088)tokio-tungstenite
to 0.26 (#3078)serde_path_to_error
to report fields that failed to parse (#3081)full changelog
Note: there are further relevant changes in axum-core's changelog
/:single
and/*many
to/{single}
and/{*many}
; the old syntax produces a panic to avoid silent change in behavior (#2645)Sync
for all handlers and services added toRouter
andMethodRouter
(#2473)Path
extractor deserializers now check that the number of parameters matches the tuple length exactly (#2931)Host
extractor toaxum-extra
(#2956)WebSocket::close
. Users should explicitly send close messages themselves. (#2974)serve
generic over the listener and IO types (#2941)Serve::tcp_nodelay
andWithGracefulShutdown::tcp_nodelay
.See
serve::ListenerExt
for an API that let you set arbitrary TCP stream properties. (#2941)Option<Path<T>>
no longer swallows all error conditions,instead rejecting the request in many cases; see its documentation for details (#2475)
axum::extract::ws::Message
now usesBytes
in place ofVec<u8>
,and a new
Utf8Bytes
type in place ofString
, for its variants (#3078)serde_json::RawValue
inEvent::json_data
(#2992)content-length
before middleware.This allows middleware to add bodies to requests without needing to manually set
content-length
(#2897)tokio-tungstenite
to 0.26 (#3078)serde_path_to_error
to report fields that failed to parse (#3081)method_not_allowed_fallback
to set a fallback when a path matches but there is no handler for the given HTTP method (#2903)NoContent
as a self-described shortcut forStatusCode::NO_CONTENT
(#2978)get(ws_endpoint)
handlers toany(ws_endpoint)
(#2894)MethodFilter::CONNECT
,routing::connect[_service]
andMethodRouter::connect[_service]
(#2961)FailedToDeserializePathParams::kind
enum with (ErrorKind::DeserializeError
). This new variant captures bothkey
,value
, andmessage
from named path parameters parse errors, instead of only deserialization error message inErrorKind::Message
. (#2720)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.