Skip to content

Commit 8b7b336

Browse files
chore(deps): update rust crate axum to 0.8.0 (#291)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [axum](https://redirect.github.com/tokio-rs/axum) | dependencies | minor | `0.7.5` -> `0.8.0` | --- ### Release Notes <details> <summary>tokio-rs/axum (axum)</summary> ### [`v0.8.0`](https://redirect.github.com/tokio-rs/axum/releases/tag/axum-v0.8.0): axum v0.8.0 [Compare Source](https://redirect.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://redirect.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://redirect.github.com/tokio-rs/axum/pull/2475 [#&#8203;2897]: https://redirect.github.com/tokio-rs/axum/pull/2897 [#&#8203;2903]: https://redirect.github.com/tokio-rs/axum/pull/2903 [#&#8203;2894]: https://redirect.github.com/tokio-rs/axum/pull/2894 [#&#8203;2956]: https://redirect.github.com/tokio-rs/axum/pull/2956 [#&#8203;2961]: https://redirect.github.com/tokio-rs/axum/pull/2961 [#&#8203;2974]: https://redirect.github.com/tokio-rs/axum/pull/2974 [#&#8203;2978]: https://redirect.github.com/tokio-rs/axum/pull/2978 [#&#8203;2992]: https://redirect.github.com/tokio-rs/axum/pull/2992 [#&#8203;2720]: https://redirect.github.com/tokio-rs/axum/pull/2720 [#&#8203;3039]: https://redirect.github.com/tokio-rs/axum/pull/3039 [#&#8203;2941]: https://redirect.github.com/tokio-rs/axum/pull/2941 [#&#8203;2473]: https://redirect.github.com/tokio-rs/axum/pull/2473 [#&#8203;2645]: https://redirect.github.com/tokio-rs/axum/pull/2645 [#&#8203;2931]: https://redirect.github.com/tokio-rs/axum/pull/2931 [#&#8203;2943]: https://redirect.github.com/tokio-rs/axum/pull/2943 [#&#8203;3078]: https://redirect.github.com/tokio-rs/axum/pull/3078 [#&#8203;3081]: https://redirect.github.com/tokio-rs/axum/pull/3081 [#&#8203;3088]: https://redirect.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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apollographql/subgraph-template-rust-async-graphql). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent d62cb01 commit 8b7b336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ publish = false
1111
async-graphql = { version = "7.0.3", default-features = false, features = ["tracing"] }
1212
async-graphql-axum = { version = "7.0.3", default-features = false }
1313
async-trait = "0.1.80"
14-
axum = { version = "0.7.5", default-features = false }
14+
axum = { version = "0.8.0", default-features = false }
1515
headers = "0.4.0"
1616
http = "1.1.0"
1717
hyper = "1.3.1"

0 commit comments

Comments
 (0)