chore(deps): update rust crate axum to 0.8 #15

Merged
kjuulh merged 1 commits from renovate/all into main 2025-01-02 06:29:58 +01:00
Owner

This PR contains the following updates:

Package Type Update Change
axum workspace.dependencies minor 0.7 -> 0.8

Release Notes

tokio-rs/axum (axum)

v0.8.0: axum v0.8.0

Compare Source

since rc.1

  • breaking: axum::extract::ws::Message now uses Bytes in place of Vec<u8>,
    and a new Utf8Bytes type in place of String, for its variants (#​3078)
  • breaking: Remove OptionalFromRequestParts impl for Query (#​3088)
  • changed: Upgraded tokio-tungstenite to 0.26 (#​3078)
  • changed: Query/Form: Use 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

  • breaking: Upgrade matchit to 0.8, changing the path parameter syntax from /:single and /*many to /{single} and /{*many}; the old syntax produces a panic to avoid silent change in behavior (#​2645)
  • breaking: Require Sync for all handlers and services added to Router and MethodRouter (#​2473)
  • breaking: The tuple and tuple_struct Path extractor deserializers now check that the number of parameters matches the tuple length exactly (#​2931)
  • breaking: Move Host extractor to axum-extra (#​2956)
  • breaking: Remove WebSocket::close. Users should explicitly send close messages themselves. (#​2974)
  • breaking: Make serve generic over the listener and IO types (#​2941)
  • breaking: Remove Serve::tcp_nodelay and WithGracefulShutdown::tcp_nodelay.
    See serve::ListenerExt for 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::Message now uses Bytes in place of Vec<u8>,
    and a new Utf8Bytes type in place of String, for its variants (#​3078)
  • fixed: Skip SSE incompatible chars of serde_json::RawValue in Event::json_data (#​2992)
  • fixed: Don't panic when array type is used for path segment (#​3039)
  • fixed: Avoid setting content-length before middleware.
    This allows middleware to add bodies to requests without needing to manually set content-length (#​2897)
  • change: Update minimum rust version to 1.75 (#​2943)
  • changed: Upgraded tokio-tungstenite to 0.26 (#​3078)
  • changed: Query/Form: Use serde_path_to_error to report fields that failed to parse (#​3081)
  • added: Add method_not_allowed_fallback to set a fallback when a path matches but there is no handler for the given HTTP method (#​2903)
  • added: Add NoContent as a self-described shortcut for StatusCode::NO_CONTENT (#​2978)
  • added: Add support for WebSockets over HTTP/2. They can be enabled by changing get(ws_endpoint) handlers to any(ws_endpoint) (#​2894)
  • added: Add MethodFilter::CONNECT, routing::connect[_service] and MethodRouter::connect[_service] (#​2961)
  • added: Extend FailedToDeserializePathParams::kind enum with (ErrorKind::DeserializeError). This new variant captures both key, value, and message from named path parameters parse errors, instead of only deserialization error message in ErrorKind::Message. (#​2720)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [axum](https://github.com/tokio-rs/axum) | workspace.dependencies | minor | `0.7` -> `0.8` | --- ### Release Notes <details> <summary>tokio-rs/axum (axum)</summary> ### [`v0.8.0`](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.0): axum v0.8.0 [Compare Source](https://github.com/tokio-rs/axum/compare/axum-v0.7.9...axum-v0.8.0) #### since rc.1 <details> - **breaking:** `axum::extract::ws::Message` now uses `Bytes` in place of `Vec<u8>`, and a new `Utf8Bytes` type in place of `String`, for its variants ([#&#8203;3078]) - **breaking:** Remove `OptionalFromRequestParts` impl for `Query` ([#&#8203;3088]) - **changed:** Upgraded `tokio-tungstenite` to 0.26 ([#&#8203;3078]) - **changed:** Query/Form: Use `serde_path_to_error` to report fields that failed to parse ([#&#8203;3081]) </details> #### full changelog *Note: there are further relevant changes in [axum-core's changelog](https://github.com/tokio-rs/axum/releases/tag/axum-core-v0.5.0)* - **breaking:** Upgrade matchit to 0.8, changing the path parameter syntax from `/:single` and `/*many` to `/{single}` and `/{*many}`; the old syntax produces a panic to avoid silent change in behavior ([#&#8203;2645]) - **breaking:** Require `Sync` for all handlers and services added to `Router` and `MethodRouter` ([#&#8203;2473]) - **breaking:** The tuple and tuple_struct `Path` extractor deserializers now check that the number of parameters matches the tuple length exactly ([#&#8203;2931]) - **breaking:** Move `Host` extractor to `axum-extra` ([#&#8203;2956]) - **breaking:** Remove `WebSocket::close`. Users should explicitly send close messages themselves. ([#&#8203;2974]) - **breaking:** Make `serve` generic over the listener and IO types ([#&#8203;2941]) - **breaking:** Remove `Serve::tcp_nodelay` and `WithGracefulShutdown::tcp_nodelay`. See `serve::ListenerExt` for an API that let you set arbitrary TCP stream properties. ([#&#8203;2941]) - **breaking:** `Option<Path<T>>` no longer swallows all error conditions, instead rejecting the request in many cases; see its documentation for details ([#&#8203;2475]) - **breaking:** `axum::extract::ws::Message` now uses `Bytes` in place of `Vec<u8>`, and a new `Utf8Bytes` type in place of `String`, for its variants ([#&#8203;3078]) - **fixed:** Skip SSE incompatible chars of `serde_json::RawValue` in `Event::json_data` ([#&#8203;2992]) - **fixed:** Don't panic when array type is used for path segment ([#&#8203;3039]) - **fixed:** Avoid setting `content-length` before middleware. This allows middleware to add bodies to requests without needing to manually set `content-length` ([#&#8203;2897]) - **change:** Update minimum rust version to 1.75 ([#&#8203;2943]) - **changed:** Upgraded `tokio-tungstenite` to 0.26 ([#&#8203;3078]) - **changed:** Query/Form: Use `serde_path_to_error` to report fields that failed to parse ([#&#8203;3081]) - **added:** Add `method_not_allowed_fallback` to set a fallback when a path matches but there is no handler for the given HTTP method ([#&#8203;2903]) - **added:** Add `NoContent` as a self-described shortcut for `StatusCode::NO_CONTENT` ([#&#8203;2978]) - **added:** Add support for WebSockets over HTTP/2. They can be enabled by changing `get(ws_endpoint)` handlers to `any(ws_endpoint)` ([#&#8203;2894]) - **added:** Add `MethodFilter::CONNECT`, `routing::connect[_service]` and `MethodRouter::connect[_service]` ([#&#8203;2961]) - **added:** Extend `FailedToDeserializePathParams::kind` enum with (`ErrorKind::DeserializeError`). This new variant captures both `key`, `value`, and `message` from named path parameters parse errors, instead of only deserialization error message in `ErrorKind::Message`. ([#&#8203;2720]) [#&#8203;2475]: https://github.com/tokio-rs/axum/pull/2475 [#&#8203;2897]: https://github.com/tokio-rs/axum/pull/2897 [#&#8203;2903]: https://github.com/tokio-rs/axum/pull/2903 [#&#8203;2894]: https://github.com/tokio-rs/axum/pull/2894 [#&#8203;2956]: https://github.com/tokio-rs/axum/pull/2956 [#&#8203;2961]: https://github.com/tokio-rs/axum/pull/2961 [#&#8203;2974]: https://github.com/tokio-rs/axum/pull/2974 [#&#8203;2978]: https://github.com/tokio-rs/axum/pull/2978 [#&#8203;2992]: https://github.com/tokio-rs/axum/pull/2992 [#&#8203;2720]: https://github.com/tokio-rs/axum/pull/2720 [#&#8203;3039]: https://github.com/tokio-rs/axum/pull/3039 [#&#8203;2941]: https://github.com/tokio-rs/axum/pull/2941 [#&#8203;2473]: https://github.com/tokio-rs/axum/pull/2473 [#&#8203;2645]: https://github.com/tokio-rs/axum/pull/2645 [#&#8203;2931]: https://github.com/tokio-rs/axum/pull/2931 [#&#8203;2943]: https://github.com/tokio-rs/axum/pull/2943 [#&#8203;3078]: https://github.com/tokio-rs/axum/pull/3078 [#&#8203;3081]: https://github.com/tokio-rs/axum/pull/3081 [#&#8203;3088]: https://github.com/tokio-rs/axum/pull/3088 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjQuMyIsInVwZGF0ZWRJblZlciI6IjM3LjQyNC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
kjuulh added 1 commit 2025-01-02 02:33:39 +01:00
chore(deps): update rust crate axum to 0.8
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
198e537ed4
kjuulh merged commit 198e537ed4 into main 2025-01-02 06:29:58 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kjuulh/iamvisual#15
No description provided.