rustapi
rustapi copied to clipboard
Bump axum from 0.7.5 to 0.8.2
Bumps axum from 0.7.5 to 0.8.2.
Release notes
Sourced from axum's releases.
axum v0.8.2
- added: Implement
OptionalFromRequestforJson(#3142)- added: Implement
OptionalFromRequestforExtension(#3157)- changed: Make the
statusfunction of rejections aconstfunction, such asJsonRejection,QueryRejectionandPathRejection(#3168)#3142: tokio-rs/axum#3142 #3157: tokio-rs/axum#3157 #3168: tokio-rs/axum#3168
axum-extra - v0.8.0
- breaking: Update to prost 0.12. Used for the
Protobufextractor (#2224)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)
... (truncated)
Commits
5966849Release axum 0.8.2 and related crates (#3188)6df26a3Fix broken intra-doc link (#3186)70d52b3ci: Remove condition from typos job (#3187)067993eDrop unused use in doctests (#3185)f0ef8aeUpdate low-level-rustls example - add http2 feature flag (#3179)e09cc59Makestatusa const function in rejection handling (#3168)28c6be7Guarantee return value ofserve, Pt. 2 (#3166)d07d129Extension: ImplementOptionalFromRequestPartstrait (#3157)4f11b45axum-macros: move from_request.rs to from_request/mod.rs (#3163)b5236eaaxum: fix new formatting string clippy lint (#3162)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)