fix(deps): update rust crate axum to 0.8 - autoclosed
Closed
RE
12d ago+19+19+01234567890123456789-24-24-01234567890123456789
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| axum | dependencies | minor | 0.7 → 0.8 |
| axum | workspace.dependencies | minor | 0.7 → 0.8 |
Release Notes
tokio-rs/axum (axum)
v0.8.9
- added:
WebSocketUpgrade::{requested_protocols, set_selected_protocol}for more flexible subprotocol selection (#3597) - changed: Update minimum rust version to 1.80 (#3620)
- fixed: Set connect endpoint on correct field in MethodRouter (#3656)
- fixed: Return specific error message when multipart body limit is exceeded (#3611)
v0.8.8: axum v0.8.8
- Clarify documentation for
Router::route_layer(#3567)
v0.8.7: axum v0.8.7
- Relax implicit
Send/Syncbounds onRouterAsService,RouterIntoService(#3555) - Make it easier to visually scan for default features (#3550)
- Fix some documentation typos
v0.8.6
v0.8.5: axum v0.8.5
- fixed: Reject JSON request bodies with trailing characters after the JSON document (#3453)
- added: Implement
OptionalFromRequestforMultipart(#3220) - added: Getter methods
Location::{status_code, location} - added: Support for writing arbitrary binary data into server-sent events (#3425)]
- added:
middleware::ResponseAxumBodyLayerfor mapping response body toaxum::body::Body(#3469) - added:
impl FusedStream for WebSocket(#3443) - changed: The
ssemodule andSsetype no longer depend on thetokiofeature (#3154) - changed: If the location given to one of
Redirects constructors is not a valid header value, instead of panicking on construction, theIntoResponseimpl now returns an HTTP 500, just likeJsondoes when serialization fails (#3377) - changed: Update minimum rust version to 1.78 (#3412)
v0.8.4: axum v0.8.4
- added:
Router::reset_fallback(#3320) - added:
WebSocketUpgrade::selected_protocol(#3248) - fixed: Panic location for overlapping method routes (#3319)
- fixed: Don't leak a tokio task when using
servewithout graceful shutdown (#3129)
v0.8.3: axum v0.8.3
- added: Implement
From<Bytes>forMessage(#3273) - added: Implement
OptionalFromRequestforJson(#3142) - added: Implement
OptionalFromRequestforExtension(#3157) - added: Allow setting the read buffer capacity of
WebSocketUpgrade(#3178) - changed: Improved code size / compile time of dependent crates (#3285, #3294)
v0.8.2: axum v0.8.2
Yanked from crates.io due to unforeseen breaking change, see #3190 for details
- added: Implement
OptionalFromRequestforJson(#3142) - added: Implement
OptionalFromRequestforExtension(#3157) - changed: Make the
statusfunction of rejections aconstfunction, such
asJsonRejection,QueryRejectionandPathRejection(#3168)
v0.8.0: axum v0.8.0
since rc.1
- breaking:
axum::extract::ws::Messagenow usesBytesin place ofVec<u8>,
and a newUtf8Bytestype in place ofString, for its variants (#3078) - breaking: Remove
OptionalFromRequestPartsimpl forQuery(#3088) - changed: Upgraded
tokio-tungsteniteto 0.26 (#3078) - changed: Query/Form: Use
serde_path_to_errorto report fields that failed to parse (#3081)
full changelog
You can also read the blog post on tokio
Note: there are further relevant changes in axum-core's changelog
- breaking: Upgrade matchit to 0.8, changing the path parameter syntax from
/:singleand/*manyto/{single}and/{*many}; the old syntax produces a panic to avoid silent change in behavior (#2645) - breaking: Require
Syncfor all handlers and services added toRouterandMethodRouter(#2473) - breaking: The tuple and tuple_struct
Pathextractor deserializers now check that the number of parameters matches the tuple length exactly (#2931) - breaking: Move
Hostextractor toaxum-extra(#2956) - breaking: Remove
WebSocket::close. Users should explicitly send close messages themselves. (#2974) - breaking: Make
servegeneric over the listener and IO types (#2941) - breaking: Remove
Serve::tcp_nodelayandWithGracefulShutdown::tcp_nodelay.
Seeserve::ListenerExtfor an API that let you set arbitrary TCP stream properties. (#2941) - breaking:
Option<Path<T>>no longer swallows all error conditions,
instead rejecting the request in many cases; see its documentation for details (#2475) - breaking:
axum::extract::ws::Messagenow usesBytesin place ofVec<u8>,
and a newUtf8Bytestype in place ofString, for its variants (#3078) - fixed: Skip SSE incompatible chars of
serde_json::RawValueinEvent::json_data(#2992) - fixed: Don't panic when array type is used for path segment (#3039)
- fixed: Avoid setting
content-lengthbefore middleware.
This allows middleware to add bodies to requests without needing to manually setcontent-length(#2897) - change: Update minimum rust version to 1.75 (#2943)
- changed: Upgraded
tokio-tungsteniteto 0.26 (#3078) - changed: Query/Form: Use
serde_path_to_errorto report fields that failed to parse (#3081) - added: Add
method_not_allowed_fallbackto set a fallback when a path matches but there is no handler for the given HTTP method (#2903) - added: Add
NoContentas a self-described shortcut forStatusCode::NO_CONTENT(#2978) - added: Add support for WebSockets over HTTP/2. They can be enabled by changing
get(ws_endpoint)handlers toany(ws_endpoint)(#2894) - added: Add
MethodFilter::CONNECT,routing::connect[_service]andMethodRouter::connect[_service](#2961) - added: Extend
FailedToDeserializePathParams::kindenum with (ErrorKind::DeserializeError). This new variant captures bothkey,value, andmessagefrom named path parameters parse errors, instead of only deserialization error message inErrorKind::Message. (#2720)
Configuration
📅 Schedule: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 these updates again.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.