fix(deps): update rust crate tower-http to 0.7 - autoclosed #349

Closed
kompas-deps wants to merge 1 commit from renovate/tower-http-0.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
tower-http dependencies minor 0.6 → 0.7

Release Notes

tower-rs/tower-http (tower-http)

v0.7.1

Compare Source

Added

  • fs: add ServeDir::redirect_to_trailing_slash() to serve directory indexes directly instead of first redirecting to the trailing-slash path. The redirect remains the default (#​728)
  • fs: add ignore_multi_range_requests() to ServeDir and ServeFile, serving the full representation when a request asks for multiple byte ranges. The existing 416 Range Not Satisfiable response remains the default (#​727)
  • request-id: the constructors and accessors on the request-id layers, services, and RequestId are now const fn, so they can be used in const context (#​716)

Changed

  • fs: the minimum http-range-header requirement is now 0.4.2 (#​661)

Fixed

  • behavioral change: fs: make ServeDir::try_call propagate expected filesystem
    I/O errors when no fallback is configured, as documented, instead of converting
    them to 404 Not Found responses (#​718)
  • decompression: don't end the body when a data frame with no remaining bytes
    arrives after the decompressor reports end-of-stream. Trailers following such a
    frame were dropped and could not be recovered (#​722)
  • decompression: return a body error when a data frame with remaining bytes
    arrives after the decompressor reports end-of-stream, rather than silently
    truncating. This regressed in 0.7.0 (#​712)
  • fs: multipart range requests are now rejected before range validation, so
    they consistently return 416 Range Not Satisfiable with a
    Cannot serve multipart range requests body instead of a generic
    unsatisfiable-range response (#​661)
  • fs: range error responses no longer carry representation headers such as
    Content-Type and Content-Encoding (#​727)
  • set-header: SetMultipleResponseHeadersLayer and SetMultipleResponseHeader
    are now Clone regardless of the response body type, matching the fix applied
    to the request-side types in 0.7.0 (#​714)

All the changes

New Contributors

v0.7.0

Compare Source

Changes since 0.6.11

Added

  • csrf: add cross-site request forgery (CSRF) protection middleware, porting the cross-origin protection scheme introduced in Go 1.25 (#​699)

    use tower::ServiceBuilder;
    use tower_http::csrf::CsrfLayer;
    
    // Rejects cross-origin state-changing requests using `Sec-Fetch-Site`,
    // an `Origin` allow-list, and an `Origin`/`Host` fallback. No per-request
    // token state required.
    let layer = CsrfLayer::new().add_trusted_origin("https://example.com")?;
    
    let service = ServiceBuilder::new().layer(layer).service_fn(handler);
    
  • timeout: add DeadlineBody for non-resetting body timeouts, applied via the new RequestBodyDeadlineLayer and ResponseBodyDeadlineLayer (#​688)

    Unlike TimeoutBody, which resets its deadline on every frame, DeadlineBody caps the total time of a body transfer. A slow client trickling one byte at a time never trips an idle timeout but will trip a deadline.

    use std::time::Duration;
    use tower::ServiceBuilder;
    use tower_http::timeout::RequestBodyDeadlineLayer;
    
    // Abort the request body transfer after 30s total, regardless of how
    // frequently data arrives.
    let service = ServiceBuilder::new()
        .layer(RequestBodyDeadlineLayer::new(Duration::from_secs(30)))
        .service_fn(handler);
    
  • fs: add strong ETag support to ServeDir, including If-Match and If-None-Match precondition handling per RFC 9110. 304 Not Modified responses now carry the ETag and Last-Modified validators (#​691)

  • fs: add a Backend trait to make ServeDir work with non-filesystem sources (e.g. embedded assets or object storage). The default TokioBackend preserves existing behavior. Use ServeDir::with_backend() to plug in custom implementations (#​684)

    use tower_http::services::fs::ServeDir;
    
    // `MyBackend` implements `tower_http::services::fs::Backend`.
    // The default `ServeDir::new()` continues to use `TokioBackend` (local FS).
    let service = ServeDir::with_backend("assets", MyBackend::new());
    
  • fs: add html_as_default_extension option to ServeDir, appending .html when the request path has no extension (#​519)

  • fs: add redirect_path_prefix option to ServeDir, prepending a prefix on trailing-slash redirects so the service can be mounted under a sub-path (#​486)

  • validate-request: add ValidateRequestHeaderLayer::has_header_value() to reject requests when a header does not have an expected value (#​360)

  • body: UnsyncBoxBody::new() constructor and From<ServeFileSystemResponseBody> conversion to avoid double-boxing when combining ServeDir responses with other body types (#​537)

  • limit: implement Default for limit::ResponseBody when the wrapped body also implements Default (#​679)

Changed

  • breaking: compression: the middleware now handles the * wildcard and identity;q=0 in Accept-Encoding per RFC 9110 §12.5.3. Requests that previously fell back to identity (e.g. *;q=0 or identity;q=0 with no other acceptable encoding) now receive a 406 Not Acceptable response. Clients that explicitly reject all encodings without listing an alternative will see different behavior. (#​693)

  • breaking: compression: upgrade the SizeAbove predicate threshold from u16 to u64, allowing minimum sizes above 64 KiB (#​704)

  • breaking: remove the implicit no-op tokio and async-compression features. These were kept as no-op features in 0.6.x for backwards compatibility after the switch to dep: syntax in #​642. Downstream crates that activate tower-http/tokio or tower http/async-compression should remove those feature entries; the underlying dependencies are still pulled in transitively by the features that need them (e.g. compression-gzip, fs, timeout). (#​628)

  • breaking: trace/classify: include the gRPC error message in tracing output. GrpcCode and GrpcFailureClass are now #[non_exhaustive], and GrpcStatus is exported from the classify module (#​422)

  • breaking: follow-redirect: FollowRedirect now forwards request Extensions to redirected requests instead of dropping them. The Standard policy drops extensions on cross-origin redirections (same-origin keeps them). Opt out with FollowRedirectLayer::preserve_extensions(false); keep specific types with FilterCredentials::allow_extension::<T>() or all of them with keep_all_extensions(). (#​706)

    use tower_http::follow_redirect::FollowRedirectLayer;
    
    // 0.7.0 forwards request `Extensions` across redirects by default.
    // Restore the previous behavior (drop all extensions) with:
    let layer = FollowRedirectLayer::new().preserve_extensions(false);
    
  • breaking: follow-redirect: header and extension filtering is now cumulative. A value a policy drops on one hop is no longer replayed on later hops, so FilterCredentials no longer re-sends Cookie/Authorization to a same-origin target reached after cross-origin hop. Custom Policy::on_request impls now see the previous hop's filtered request, not the original. (#​706)

  • trace: DefaultOnRequest, DefaultOnResponse, DefaultOnFailure, and DefaultOnEos now explicitly parent their tracing events to the request span rather than relying on the ambient span context. This fixes intermittent cases where events could appear without their request span attached (#​690)

  • cors: relax the Vary header defaults (#​674)

  • MSRV bumped from 1.64 to 1.65 (#​684)

Fixed

  • fs: ServeDir and ServeFile now emit a Vary: Accept-Encoding response
    header when precompressed serving is configured, ensuring caches correctly
    distinguish between compressed and uncompressed variants (#​692)
  • breaking: services: reject a trailing slash for file paths. File requests with a trailing slash now return 404 Not Found instead of serving the file (#​678)
  • fs: fix ServeDir stripping the file extension when serving with identity encoding (#​686)
  • compression: forward trailers from the inner body after compression finishes, fixing dropped gRPC status trailers (#​685)
  • trace: fire on_eos when the inner body reports is_end_stream with a precise content-length (#​687)
  • on-early-drop: suppress the early-drop guard when is_end_stream is reported after a data frame (#​687)
  • set-header: make SetMultipleRequestHeaders and SetMultipleResponseHeaders Clone for non-Clone HTTP bodies (#​703)

Thanks

New Contributors

Configuration

📅 Schedule: (in timezone Europe/Amsterdam)

  • Branch creation
    • "before 6am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ 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 Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tower-http](https://github.com/tower-rs/tower-http) | dependencies | minor | `0.6` → `0.7` | --- ### Release Notes <details> <summary>tower-rs/tower-http (tower-http)</summary> ### [`v0.7.1`](https://github.com/tower-rs/tower-http/releases/tag/tower-http-0.7.1) [Compare Source](https://github.com/tower-rs/tower-http/compare/tower-http-0.7.0...tower-http-0.7.1) #### Added - `fs`: add `ServeDir::redirect_to_trailing_slash()` to serve directory indexes directly instead of first redirecting to the trailing-slash path. The redirect remains the default ([#&#8203;728]) - `fs`: add `ignore_multi_range_requests()` to `ServeDir` and `ServeFile`, serving the full representation when a request asks for multiple byte ranges. The existing `416 Range Not Satisfiable` response remains the default ([#&#8203;727]) - `request-id`: the constructors and accessors on the request-id layers, services, and `RequestId` are now `const fn`, so they can be used in const context ([#&#8203;716]) #### Changed - `fs`: the minimum `http-range-header` requirement is now 0.4.2 ([#&#8203;661]) #### Fixed - **behavioral change:** `fs`: make `ServeDir::try_call` propagate expected filesystem I/O errors when no fallback is configured, as documented, instead of converting them to `404 Not Found` responses ([#&#8203;718]) - `decompression`: don't end the body when a data frame with no remaining bytes arrives after the decompressor reports end-of-stream. Trailers following such a frame were dropped and could not be recovered ([#&#8203;722]) - `decompression`: return a body error when a data frame with remaining bytes arrives after the decompressor reports end-of-stream, rather than silently truncating. This regressed in 0.7.0 ([#&#8203;712]) - `fs`: multipart range requests are now rejected before range validation, so they consistently return `416 Range Not Satisfiable` with a `Cannot serve multipart range requests` body instead of a generic unsatisfiable-range response ([#&#8203;661]) - `fs`: range error responses no longer carry representation headers such as `Content-Type` and `Content-Encoding` ([#&#8203;727]) - `set-header`: `SetMultipleResponseHeadersLayer` and `SetMultipleResponseHeader` are now `Clone` regardless of the response body type, matching the fix applied to the request-side types in 0.7.0 ([#&#8203;714]) [#&#8203;661]: https://github.com/tower-rs/tower-http/pull/661 [#&#8203;712]: https://github.com/tower-rs/tower-http/pull/712 [#&#8203;714]: https://github.com/tower-rs/tower-http/pull/714 [#&#8203;716]: https://github.com/tower-rs/tower-http/pull/716 [#&#8203;718]: https://github.com/tower-rs/tower-http/pull/718 [#&#8203;722]: https://github.com/tower-rs/tower-http/pull/722 [#&#8203;727]: https://github.com/tower-rs/tower-http/pull/727 [#&#8203;728]: https://github.com/tower-rs/tower-http/pull/728 #### All the changes - chore(deps): bump actions/checkout from 6 to 7 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;708](https://github.com/tower-rs/tower-http/pull/708) - fix(compression): reject non-empty data frames after codec is EOF by [@&#8203;seanmonstar](https://github.com/seanmonstar) in [#&#8203;712](https://github.com/tower-rs/tower-http/pull/712) - Remove Clone derivations from SetMultipleResponseHeader\* types by [@&#8203;skeet70](https://github.com/skeet70) in [#&#8203;714](https://github.com/tower-rs/tower-http/pull/714) - feat(request-id): Allow request-id constructor in const context by [@&#8203;tottoto](https://github.com/tottoto) in [#&#8203;716](https://github.com/tower-rs/tower-http/pull/716) - fs: Avoid unnecessary conversions between SystemTime and HttpDate by [@&#8203;tottoto](https://github.com/tottoto) in [#&#8203;717](https://github.com/tower-rs/tower-http/pull/717) - fs: Use HeaderValue::is_empty to check for empty values by [@&#8203;tottoto](https://github.com/tottoto) in [#&#8203;720](https://github.com/tower-rs/tower-http/pull/720) - fs: Use HeaderValue::to_str for date headers by [@&#8203;tottoto](https://github.com/tottoto) in [#&#8203;721](https://github.com/tower-rs/tower-http/pull/721) - chore(deps): bump taiki-e/install-action from 2 to 2.85.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;715](https://github.com/tower-rs/tower-http/pull/715) - chore(deps): bump taiki-e/install-action from 2.85.4 to 2.85.12 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;723](https://github.com/tower-rs/tower-http/pull/723) - docs(example)/custom future with multiple bodies by [@&#8203;Reza-Darius](https://github.com/Reza-Darius) in [#&#8203;711](https://github.com/tower-rs/tower-http/pull/711) - fix(decompression): don't end the body on an empty data frame by [@&#8203;clemenslosbichler-cloud](https://github.com/clemenslosbichler-cloud) in [#&#8203;722](https://github.com/tower-rs/tower-http/pull/722) - Propagate ServeDir::try_call I/O errors by [@&#8203;Boulea7](https://github.com/Boulea7) in [#&#8203;718](https://github.com/tower-rs/tower-http/pull/718) - ci: Update to cargo-check-external-types 0.5.0 by [@&#8203;tottoto](https://github.com/tottoto) in [#&#8203;724](https://github.com/tower-rs/tower-http/pull/724) - fix: reject multipart ranges before validation by [@&#8203;shblue21](https://github.com/shblue21) in [#&#8203;661](https://github.com/tower-rs/tower-http/pull/661) - chore(deps): bump taiki-e/install-action from 2.85.12 to 2.86.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;726](https://github.com/tower-rs/tower-http/pull/726) - feat(services): configure directory redirects by [@&#8203;BreezeDelegate](https://github.com/BreezeDelegate) in [#&#8203;728](https://github.com/tower-rs/tower-http/pull/728) - Allow ignoring unsupported multi-range requests by [@&#8203;BreezeDelegate](https://github.com/BreezeDelegate) in [#&#8203;727](https://github.com/tower-rs/tower-http/pull/727) - chore(deps): bump taiki-e/install-action from 2.86.3 to 2.86.8 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;730](https://github.com/tower-rs/tower-http/pull/730) - chore(release): prepare 0.7.1 by [@&#8203;jlizen](https://github.com/jlizen) in [#&#8203;729](https://github.com/tower-rs/tower-http/pull/729) #### New Contributors - [@&#8203;skeet70](https://github.com/skeet70) made their first contribution in [#&#8203;714](https://github.com/tower-rs/tower-http/pull/714) - [@&#8203;Reza-Darius](https://github.com/Reza-Darius) made their first contribution in [#&#8203;711](https://github.com/tower-rs/tower-http/pull/711) - [@&#8203;clemenslosbichler-cloud](https://github.com/clemenslosbichler-cloud) made their first contribution in [#&#8203;722](https://github.com/tower-rs/tower-http/pull/722) - [@&#8203;Boulea7](https://github.com/Boulea7) made their first contribution in [#&#8203;718](https://github.com/tower-rs/tower-http/pull/718) - [@&#8203;shblue21](https://github.com/shblue21) made their first contribution in [#&#8203;661](https://github.com/tower-rs/tower-http/pull/661) - [@&#8203;BreezeDelegate](https://github.com/BreezeDelegate) made their first contribution in [#&#8203;728](https://github.com/tower-rs/tower-http/pull/728) ### [`v0.7.0`](https://github.com/tower-rs/tower-http/releases/tag/tower-http-0.7.0) [Compare Source](https://github.com/tower-rs/tower-http/compare/tower-http-0.6.11...tower-http-0.7.0) [Changes since 0.6.11](https://github.com/tower-rs/tower-http/compare/tower-http-0.6.11...tower-http-0.7.0) #### Added - `csrf`: add cross-site request forgery (CSRF) protection middleware, porting the cross-origin protection scheme introduced in Go 1.25 ([#&#8203;699]) ```rust use tower::ServiceBuilder; use tower_http::csrf::CsrfLayer; // Rejects cross-origin state-changing requests using `Sec-Fetch-Site`, // an `Origin` allow-list, and an `Origin`/`Host` fallback. No per-request // token state required. let layer = CsrfLayer::new().add_trusted_origin("https://example.com")?; let service = ServiceBuilder::new().layer(layer).service_fn(handler); ``` - `timeout`: add `DeadlineBody` for non-resetting body timeouts, applied via the new `RequestBodyDeadlineLayer` and `ResponseBodyDeadlineLayer` ([#&#8203;688]) Unlike `TimeoutBody`, which resets its deadline on every frame, `DeadlineBody` caps the total time of a body transfer. A slow client trickling one byte at a time never trips an idle timeout but will trip a deadline. ```rust use std::time::Duration; use tower::ServiceBuilder; use tower_http::timeout::RequestBodyDeadlineLayer; // Abort the request body transfer after 30s total, regardless of how // frequently data arrives. let service = ServiceBuilder::new() .layer(RequestBodyDeadlineLayer::new(Duration::from_secs(30))) .service_fn(handler); ``` - `fs`: add strong `ETag` support to `ServeDir`, including `If-Match` and `If-None-Match` precondition handling per RFC 9110. `304 Not Modified` responses now carry the `ETag` and `Last-Modified` validators ([#&#8203;691]) - `fs`: add a `Backend` trait to make `ServeDir` work with non-filesystem sources (e.g. embedded assets or object storage). The default `TokioBackend` preserves existing behavior. Use `ServeDir::with_backend()` to plug in custom implementations ([#&#8203;684]) ```rust use tower_http::services::fs::ServeDir; // `MyBackend` implements `tower_http::services::fs::Backend`. // The default `ServeDir::new()` continues to use `TokioBackend` (local FS). let service = ServeDir::with_backend("assets", MyBackend::new()); ``` - `fs`: add `html_as_default_extension` option to `ServeDir`, appending `.html` when the request path has no extension ([#&#8203;519]) - `fs`: add `redirect_path_prefix` option to `ServeDir`, prepending a prefix on trailing-slash redirects so the service can be mounted under a sub-path ([#&#8203;486]) - `validate-request`: add `ValidateRequestHeaderLayer::has_header_value()` to reject requests when a header does not have an expected value ([#&#8203;360]) - `body`: `UnsyncBoxBody::new()` constructor and `From<ServeFileSystemResponseBody>` conversion to avoid double-boxing when combining `ServeDir` responses with other body types ([#&#8203;537]) - `limit`: implement `Default` for `limit::ResponseBody` when the wrapped body also implements `Default` ([#&#8203;679]) #### Changed - **breaking:** `compression`: the middleware now handles the `*` wildcard and `identity;q=0` in Accept-Encoding per RFC 9110 §12.5.3. Requests that previously fell back to identity (e.g. `*;q=0` or `identity;q=0` with no other acceptable encoding) now receive a 406 Not Acceptable response. Clients that explicitly reject all encodings without listing an alternative will see different behavior. ([#&#8203;693]) - **breaking:** `compression`: upgrade the `SizeAbove` predicate threshold from `u16` to `u64`, allowing minimum sizes above 64 KiB ([#&#8203;704]) - **breaking:** remove the implicit no-op `tokio` and `async-compression` features. These were kept as no-op features in 0.6.x for backwards compatibility after the switch to `dep:` syntax in [#&#8203;642]. Downstream crates that activate `tower-http/tokio` or `tower http/async-compression` should remove those feature entries; the underlying dependencies are still pulled in transitively by the features that need them (e.g. `compression-gzip`, `fs`, `timeout`). ([#&#8203;628]) - **breaking:** `trace`/`classify`: include the gRPC error message in tracing output. `GrpcCode` and `GrpcFailureClass` are now `#[non_exhaustive]`, and `GrpcStatus` is exported from the `classify` module ([#&#8203;422]) - **breaking:** `follow-redirect`: `FollowRedirect` now forwards request `Extensions` to redirected requests instead of dropping them. The `Standard` policy drops extensions on cross-origin redirections (same-origin keeps them). Opt out with `FollowRedirectLayer::preserve_extensions(false)`; keep specific types with `FilterCredentials::allow_extension::<T>()` or all of them with `keep_all_extensions()`. ([#&#8203;706]) ```rust use tower_http::follow_redirect::FollowRedirectLayer; // 0.7.0 forwards request `Extensions` across redirects by default. // Restore the previous behavior (drop all extensions) with: let layer = FollowRedirectLayer::new().preserve_extensions(false); ``` - **breaking:** `follow-redirect`: header and extension filtering is now cumulative. A value a policy drops on one hop is no longer replayed on later hops, so `FilterCredentials` no longer re-sends `Cookie`/`Authorization` to a same-origin target reached after cross-origin hop. Custom `Policy::on_request` impls now see the previous hop's filtered request, not the original. ([#&#8203;706]) - `trace`: `DefaultOnRequest`, `DefaultOnResponse`, `DefaultOnFailure`, and `DefaultOnEos` now explicitly parent their tracing events to the request span rather than relying on the ambient span context. This fixes intermittent cases where events could appear without their request span attached ([#&#8203;690]) - `cors`: relax the `Vary` header defaults ([#&#8203;674]) - MSRV bumped from 1.64 to 1.65 ([#&#8203;684]) #### Fixed - `fs`: `ServeDir` and `ServeFile` now emit a `Vary: Accept-Encoding` response header when precompressed serving is configured, ensuring caches correctly distinguish between compressed and uncompressed variants ([#&#8203;692]) - **breaking:** `services`: reject a trailing slash for file paths. File requests with a trailing slash now return `404 Not Found` instead of serving the file ([#&#8203;678]) - `fs`: fix `ServeDir` stripping the file extension when serving with identity encoding ([#&#8203;686]) - `compression`: forward trailers from the inner body after compression finishes, fixing dropped gRPC status trailers ([#&#8203;685]) - `trace`: fire `on_eos` when the inner body reports `is_end_stream` with a precise content-length ([#&#8203;687]) - `on-early-drop`: suppress the early-drop guard when `is_end_stream` is reported after a data frame ([#&#8203;687]) - `set-header`: make `SetMultipleRequestHeaders` and `SetMultipleResponseHeaders` `Clone` for non-`Clone` HTTP bodies ([#&#8203;703]) [#&#8203;360]: https://github.com/tower-rs/tower-http/pull/360 [#&#8203;422]: https://github.com/tower-rs/tower-http/pull/422 [#&#8203;486]: https://github.com/tower-rs/tower-http/pull/486 [#&#8203;519]: https://github.com/tower-rs/tower-http/pull/519 [#&#8203;537]: https://github.com/tower-rs/tower-http/pull/537 [#&#8203;628]: https://github.com/tower-rs/tower-http/pull/628 [#&#8203;642]: https://github.com/tower-rs/tower-http/pull/642 [#&#8203;674]: https://github.com/tower-rs/tower-http/pull/674 [#&#8203;678]: https://github.com/tower-rs/tower-http/pull/678 [#&#8203;679]: https://github.com/tower-rs/tower-http/pull/679 [#&#8203;684]: https://github.com/tower-rs/tower-http/pull/684 [#&#8203;685]: https://github.com/tower-rs/tower-http/pull/685 [#&#8203;686]: https://github.com/tower-rs/tower-http/pull/686 [#&#8203;687]: https://github.com/tower-rs/tower-http/pull/687 [#&#8203;688]: https://github.com/tower-rs/tower-http/pull/688 [#&#8203;690]: https://github.com/tower-rs/tower-http/pull/690 [#&#8203;691]: https://github.com/tower-rs/tower-http/pull/691 [#&#8203;692]: https://github.com/tower-rs/tower-http/pull/692 [#&#8203;693]: https://github.com/tower-rs/tower-http/pull/693 [#&#8203;699]: https://github.com/tower-rs/tower-http/pull/699 [#&#8203;703]: https://github.com/tower-rs/tower-http/pull/703 [#&#8203;704]: https://github.com/tower-rs/tower-http/pull/704 [#&#8203;706]: https://github.com/tower-rs/tower-http/pull/706 #### Thanks - [@&#8203;jlizen](https://github.com/jlizen) - [@&#8203;seun-ja](https://github.com/seun-ja) - [@&#8203;Oliboy50](https://github.com/Oliboy50) ##### New Contributors - [@&#8203;muhamadazmy](https://github.com/muhamadazmy) made their first contribution in [#&#8203;679](https://github.com/tower-rs/tower-http/pull/679) - [@&#8203;Isvane](https://github.com/Isvane) made their first contribution in [#&#8203;678](https://github.com/tower-rs/tower-http/pull/678) - [@&#8203;xiaoyawei](https://github.com/xiaoyawei) made their first contribution in [#&#8203;422](https://github.com/tower-rs/tower-http/pull/422) - [@&#8203;dependabot](https://github.com/dependabot)\[bot] made their first contribution in [#&#8203;696](https://github.com/tower-rs/tower-http/pull/696) - [@&#8203;its-the-shrimp](https://github.com/its-the-shrimp) made their first contribution in [#&#8203;519](https://github.com/tower-rs/tower-http/pull/519) - [@&#8203;yawn](https://github.com/yawn) made their first contribution in [#&#8203;699](https://github.com/tower-rs/tower-http/pull/699) - [@&#8203;Jesse-Bakker](https://github.com/Jesse-Bakker) made their first contribution in [#&#8203;703](https://github.com/tower-rs/tower-http/pull/703) - [@&#8203;junghwan16](https://github.com/junghwan16) made their first contribution in [#&#8203;705](https://github.com/tower-rs/tower-http/pull/705) - [@&#8203;claraphyll](https://github.com/claraphyll) made their first contribution in [#&#8203;486](https://github.com/tower-rs/tower-http/pull/486) </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Amsterdam) - Branch creation - "before 6am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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 [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBzLW1ham9yIiwiaG9sZCJdfQ==-->
fix(deps): update rust crate tower-http to 0.7
Some checks failed
kreative-pr/review reviewed: 0 finding(s)
build / skills (pull_request) Successful in 11s
build / web (pull_request) Successful in 5s
build / server (pull_request) Successful in 2m12s
build / runner (pull_request) Successful in 23s
build / runner-windows (pull_request) Successful in 25s
lint / megalinter (pull_request) Successful in 2m48s
build / web-live (pull_request) Successful in 6m3s
fresh-install / fresh-install (pull_request) Successful in 7m31s
review-gate / gate review findings are all handled
kk / all-checks All 10 checks passed
review-gate / sweep (pull_request) Has been cancelled
5253b840d8
Collaborator

On hold (hold): this PR does not merge by itself. Reply merge here and it merges as soon as the checks pass.

<!-- kk-automerge:hold --> On hold (hold): this PR does not merge by itself. Reply `merge` here and it merges as soon as the checks pass.
Collaborator

Title

fix(deps): update rust crate tower-http to 0.7


PR Type

dependencies


Description

  • Updates tower-http crate from version 0.6 to 0.7

  • Enables new features like trailing slash redirects and multi-range handling

  • Adjusts dependency constraints for updated http-range-header requirement


Diagram Walkthrough

flowchart LR
  A["Cargo.toml"] -->|"version bump"| B["tower-http 0.7"]
  B -.->|"new features"| C["ServeDir enhancements"]
  B -.->|"new features"| D["trailing slash redirects"]
  B -.->|"new features"| E["multi-range handling"]

File Walkthrough

Relevant files
Dependencies
Cargo.toml
Upgrade tower-http crate to latest minor version                 

server/Cargo.toml

  • Updated tower-http dependency version from 0.6 to 0.7
  • Maintained existing feature flags: fs, trace, set-header
  • No additional configuration or code modifications required
+1/-1     

## Title <!-- pr-agent:describe:persistent --> fix(deps): update rust crate tower-http to 0.7 ___ ### **PR Type** dependencies ___ ### **Description** - Updates `tower-http` crate from version 0.6 to 0.7 - Enables new features like trailing slash redirects and multi-range handling - Adjusts dependency constraints for updated `http-range-header` requirement ___ ### Diagram Walkthrough ```mermaid flowchart LR A["Cargo.toml"] -->|"version bump"| B["tower-http 0.7"] B -.->|"new features"| C["ServeDir enhancements"] B -.->|"new features"| D["trailing slash redirects"] B -.->|"new features"| E["multi-range handling"] ``` <details> <summary><h3> File Walkthrough</h3></summary> <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Dependencies</strong></td><td><table> <tr> <td> <details> <summary><strong>Cargo.toml</strong><dd><code>Upgrade tower-http crate to latest minor version</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> server/Cargo.toml <ul><li>Updated <code>tower-http</code> dependency version from 0.6 to 0.7<br> <li> Maintained existing feature flags: <code>fs</code>, <code>trace</code>, <code>set-header</code><br> <li> No additional configuration or code modifications required</ul> </details> </td> <td><a href="https://git.kreative-kompas.com/khyretos/kreative-kompanion/src/branch/renovate/tower-http-0.x/server/Cargo.toml">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> </details> ___
Owner

/review

/review
Collaborator

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🔒 No security concerns identified
⚡ No major issues detected
## PR Reviewer Guide 🔍 <!-- pr-agent:review:full --> Here are some key observations to aid the review process: <table> <tr><td>🔒&nbsp;<strong>No security concerns identified</strong></td></tr> <tr><td>⚡&nbsp;<strong>No major issues detected</strong></td></tr> </table>

🧹 Lint report · ✅ all 25 checks clean

Errors below fail this check.

✅ Clean: black, checkstyle, djlint, editorconfig-checker, git_diff, gitleaks, grype, hadolint, htmlhint, isort, jsonlint, markdownlint, npm-groovy-lint, pmd, prettier, prettier, ruff, secretlint, shellcheck, shfmt, stylelint, trivy, trufflehog, xmllint, yamllint

MegaLinter on soucouyant · full logs in the Actions run · comment /improve for AI fix suggestions

<!-- kk-lint --> ## 🧹 Lint report · ✅ all 25 checks clean Errors below fail this check. ✅ Clean: black, checkstyle, djlint, editorconfig-checker, git_diff, gitleaks, grype, hadolint, htmlhint, isort, jsonlint, markdownlint, npm-groovy-lint, pmd, prettier, prettier, ruff, secretlint, shellcheck, shfmt, stylelint, trivy, trufflehog, xmllint, yamllint <sub>MegaLinter on soucouyant · full logs in the Actions run · comment <code>/improve</code> for AI fix suggestions</sub>
kompas-deps changed title from fix(deps): update rust crate tower-http to 0.7 to fix(deps): update rust crate tower-http to 0.7 - autoclosed 2026-11-09 14:01:28 +01:00
kompas-deps closed this pull request 2026-11-09 14:01:28 +01:00
Some checks failed
kreative-pr/review reviewed: 0 finding(s)
build / skills (pull_request) Successful in 11s
Required
Details
build / web (pull_request) Successful in 5s
Required
Details
build / server (pull_request) Successful in 2m12s
Required
Details
build / runner (pull_request) Successful in 23s
Required
Details
build / runner-windows (pull_request) Successful in 25s
Required
Details
lint / megalinter (pull_request) Successful in 2m48s
Required
Details
build / web-live (pull_request) Successful in 6m3s
Required
Details
fresh-install / fresh-install (pull_request) Successful in 7m31s
review-gate / gate review findings are all handled
Required
kk / all-checks All 10 checks passed
Required
review-gate / sweep (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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
khyretos/kreative-kompanion!349
No description provided.