Skip to content

Update Rust crate axum to 0.8.0#142

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/axum-monorepo
Open

Update Rust crate axum to 0.8.0#142
renovate[bot] wants to merge 1 commit intomainfrom
renovate/axum-monorepo

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Jan 8, 2025

This PR contains the following updates:

Package Type Update Change
axum dependencies minor 0.7.50.8.0

Release Notes

tokio-rs/axum (axum)

v0.8.8: axum v0.8.8

Compare Source

  • Clarify documentation for Router::route_layer (#​3567)

v0.8.7: axum v0.8.7

Compare Source

  • Relax implicit Send / Sync bounds on RouterAsService, RouterIntoService (#​3555)
  • Make it easier to visually scan for default features (#​3550)
  • Fix some documentation typos

v0.8.6

Compare Source

v0.8.5: axum v0.8.5

Compare Source

  • fixed: Reject JSON request bodies with trailing characters after the JSON document (#​3453)
  • added: Implement OptionalFromRequest for Multipart (#​3220)
  • added: Getter methods Location::{status_code, location}
  • added: Support for writing arbitrary binary data into server-sent events (#​3425)]
  • added: middleware::ResponseAxumBodyLayer for mapping response body to axum::body::Body (#​3469)
  • added: impl FusedStream for WebSocket (#​3443)
  • changed: The sse module and Sse type no longer depend on the tokio feature (#​3154)
  • changed: If the location given to one of Redirects constructors is not a valid header value, instead of panicking on construction, the IntoResponse impl now returns an HTTP 500, just like Json does when serialization fails (#​3377)
  • changed: Update minimum rust version to 1.78 (#​3412)

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

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 (#​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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) January 8, 2025 18:57
@renovate renovate bot force-pushed the renovate/axum-monorepo branch from e213cfd to ad8d55e Compare January 8, 2025 22:25
@renovate renovate bot assigned jdno Jan 9, 2025
@renovate renovate bot requested a review from jdno January 9, 2025 02:32
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 2 times, most recently from d7d7d0f to 2329ba2 Compare January 16, 2025 21:26
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 5 times, most recently from 202d9ff to ca76510 Compare January 25, 2025 09:12
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 3 times, most recently from 6c265b2 to a86203f Compare February 4, 2025 05:38
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 4 times, most recently from 07a67e8 to 2654c9b Compare February 17, 2025 22:28
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 2 times, most recently from f8f5475 to 8678f6d Compare February 20, 2025 16:38
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 10 times, most recently from 27768e2 to 43d520b Compare March 14, 2025 06:44
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 2 times, most recently from 9f73f26 to 73605e5 Compare April 12, 2025 01:44
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 3 times, most recently from 730f386 to fc225ad Compare April 19, 2025 02:24
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 4 times, most recently from c4a931f to e59c932 Compare May 8, 2025 19:54
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 2 times, most recently from 83e35ab to e8147a1 Compare May 12, 2025 03:30
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 3 times, most recently from f3b0c73 to 74774a8 Compare May 24, 2025 18:07
@renovate renovate bot force-pushed the renovate/axum-monorepo branch from 74774a8 to d4181c6 Compare May 27, 2025 22:33
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 4 times, most recently from 99a9566 to 886e781 Compare June 13, 2025 06:07
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 2 times, most recently from bf77d6c to d854a29 Compare June 24, 2025 12:56
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 2 times, most recently from bd4e286 to 75432e1 Compare July 2, 2025 19:09
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 2 times, most recently from d9cd9c5 to 76a4ee1 Compare July 10, 2025 04:59
@renovate renovate bot force-pushed the renovate/axum-monorepo branch from 76a4ee1 to 0a38fc8 Compare July 19, 2025 00:55
@renovate renovate bot force-pushed the renovate/axum-monorepo branch 3 times, most recently from 5fb584b to 02debc1 Compare August 1, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant