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

Open
kjuulh wants to merge 1 commits from renovate/axum-monorepo into main
Owner

This PR contains the following updates:

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

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

tokio-rs/axum (axum)

v0.8.4: axum v0.8.4

Compare Source

  • 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 serve without graceful shutdown (#​3129)

v0.8.3: axum v0.8.3

Compare Source

  • added: Implement From<Bytes> for Message (#​3273)
  • added: Implement OptionalFromRequest for Json (#​3142)
  • added: Implement OptionalFromRequest for Extension (#​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 OptionalFromRequest for Json (#​3142)
  • added: Implement OptionalFromRequest for Extension (#​3157)
  • changed: Make the status function of rejections a const function, such
    as JsonRejection, QueryRejection and PathRejection (#​3168)

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

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 /: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 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.


  • 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` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>tokio-rs/axum (axum)</summary> ### [`v0.8.4`](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.4): axum v0.8.4 [Compare Source](https://github.com/tokio-rs/axum/compare/axum-v0.8.3...axum-v0.8.4) - **added:** `Router::reset_fallback` ([#&#8203;3320]) - **added:** `WebSocketUpgrade::selected_protocol` ([#&#8203;3248]) - **fixed:** Panic location for overlapping method routes ([#&#8203;3319]) - **fixed:** Don't leak a tokio task when using `serve` without graceful shutdown ([#&#8203;3129]) [#&#8203;3319]: https://github.com/tokio-rs/axum/pull/3319 [#&#8203;3320]: https://github.com/tokio-rs/axum/pull/3320 [#&#8203;3248]: https://github.com/tokio-rs/axum/pull/3248 [#&#8203;3129]: https://github.com/tokio-rs/axum/pull/3129 ### [`v0.8.3`](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.3): axum v0.8.3 [Compare Source](https://github.com/tokio-rs/axum/compare/axum-v0.8.2...axum-v0.8.3) - **added:** Implement `From<Bytes>` for `Message` ([#&#8203;3273]) - **added:** Implement `OptionalFromRequest` for `Json` ([#&#8203;3142]) - **added:** Implement `OptionalFromRequest` for `Extension` ([#&#8203;3157]) - **added:** Allow setting the read buffer capacity of `WebSocketUpgrade` ([#&#8203;3178]) - **changed:** Improved code size / compile time of dependent crates ([#&#8203;3285], [#&#8203;3294]) [#&#8203;3273]: https://github.com/tokio-rs/axum/pull/3273 [#&#8203;3142]: https://github.com/tokio-rs/axum/pull/3142 [#&#8203;3157]: https://github.com/tokio-rs/axum/pull/3157 [#&#8203;3178]: https://github.com/tokio-rs/axum/pull/3178 [#&#8203;3285]: https://github.com/tokio-rs/axum/pull/3285 [#&#8203;3294]: https://github.com/tokio-rs/axum/pull/3294 ### [`v0.8.2`](https://github.com/tokio-rs/axum/releases/tag/axum-v0.8.2): axum v0.8.2 Yanked from crates.io due to unforeseen breaking change, see [#&#8203;3190](https://github.com/tokio-rs/axum/issues/3190) for details *** - **added:** Implement `OptionalFromRequest` for `Json` ([#&#8203;3142]) - **added:** Implement `OptionalFromRequest` for `Extension` ([#&#8203;3157]) - **changed:** Make the `status` function of rejections a `const` function, such as `JsonRejection`, `QueryRejection` and `PathRejection` ([#&#8203;3168]) [#&#8203;3142]: https://github.com/tokio-rs/axum/pull/3142 [#&#8203;3157]: https://github.com/tokio-rs/axum/pull/3157 [#&#8203;3168]: https://github.com/tokio-rs/axum/pull/3168 ### [`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 *You can also read the blog post on [tokio](https://tokio.rs/blog/2025-01-01-announcing-axum-0-8-0)* *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 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. --- - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMTUuMiIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
kjuulh added 1 commit 2025-03-26 00:09:56 +01:00
chore(deps): update rust crate axum to 0.8
Some checks failed
renovate/artifacts Artifact file update failure
d52d565f41
Author
Owner

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package axum@0.7.9 --precise 0.8.1
    Updating crates.io index
error: failed to select a version for the requirement `axum = "^0.7"`
candidate versions found which didn't match: 0.8.1
location searched: crates.io index
required by package `tonic v0.12.3`
    ... which satisfies dependency `tonic = "^0.12.3"` (locked to 0.12.3) of package `nodata v0.1.0 (/tmp/renovate/repos/gitea/kjuulh/nodata/crates/nodata)`

### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: Cargo.lock ``` Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package axum@0.7.9 --precise 0.8.1 Updating crates.io index error: failed to select a version for the requirement `axum = "^0.7"` candidate versions found which didn't match: 0.8.1 location searched: crates.io index required by package `tonic v0.12.3` ... which satisfies dependency `tonic = "^0.12.3"` (locked to 0.12.3) of package `nodata v0.1.0 (/tmp/renovate/repos/gitea/kjuulh/nodata/crates/nodata)` ```
Some checks failed
renovate/artifacts Artifact file update failure
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/axum-monorepo:renovate/axum-monorepo
git checkout renovate/axum-monorepo
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kjuulh/nodata#26
No description provided.