chore: update rust dependencies #186

Merged
Wuast94 merged 1 commit from updatarr/rust-dependencies-17605dfeaf into main 2026-07-14 12:46:10 +02:00
Owner

Updates rust dependencies.

Automerge: Enabled

Changed files:

  • Cargo.toml:33 0.6.11 -> 0.7.0
  • Cargo.toml:77 0.10.9 -> 0.11.0
Release notes

tower-http-0.6.11: tower-http: tower-http-0.6.11

Compare source

Added

  • set-header: add SetMultipleResponseHeadersLayer and
    SetMultipleResponseHeader for setting multiple response headers at once.
    Supports overriding, appending, and if_not_present modes. Header
    values can be fixed or computed dynamically via closures (#672)

    use http::{Response, header::{self, HeaderValue}};
    use http_body::Body as _;
    use tower_http::set_header::response::SetMultipleResponseHeadersLayer;
    
    let layer = SetMultipleResponseHeadersLayer::overriding(vec![
        (header::X_FRAME_OPTIONS, HeaderValue::from_static("DENY")).into(),
        (header::CONTENT_LENGTH, |res: &Response<MyBody>| {
            res.body().size_hint().exact()
                .map(|size| HeaderValue::from_str(&size.to_string()).unwrap())
        }).into(),
    ]);
    
  • set-header: add SetMultipleRequestHeadersLayer and
    SetMultipleRequestHeaders for setting multiple request headers at once,
    mirroring the response-side API (#677)

  • classify: add From<i32> and From<NonZeroI32> impls for GrpcCode.
    Unrecognized status codes map to GrpcCode::Unknown (#506)

Changed

  • compression: compress application/grpc-web responses. Previously all
    application/grpc* content types were excluded from compression; now only
    application/grpc (non-web) is excluded (#408)

Fixed

  • fs: fix ServeDir returning 500 instead of 405 for non-GET/HEAD requests
    when call_fallback_on_method_not_allowed is enabled but no fallback service
    is configured (#587)
  • fs: remove duplicate cfg attribute on is_reserved_dos_name (#675)

All PRs

New Contributors

Full Changelog: https://github.com/tower-rs/tower-http/compare/tower-http-0.6.10...tower-http-0.6.11

Updates `rust dependencies`. Automerge: Enabled Changed files: - `Cargo.toml:33` `0.6.11` -> `0.7.0` - `Cargo.toml:77` `0.10.9` -> `0.11.0` <details> <summary>Release notes</summary> ### [`tower-http-0.6.11`](https://github.com/tower-rs/tower-http/releases/tag/tower-http-0.6.11): tower-http: tower-http-0.6.11 [Compare source](https://github.com/tower-rs/tower-http/compare/0.6.11...tower-http-0.6.11) ## Added - `set-header`: add `SetMultipleResponseHeadersLayer` and `SetMultipleResponseHeader` for setting multiple response headers at once. Supports `overriding`, `appending`, and `if_not_present` modes. Header values can be fixed or computed dynamically via closures ([#672]) ```rust use http::{Response, header::{self, HeaderValue}}; use http_body::Body as _; use tower_http::set_header::response::SetMultipleResponseHeadersLayer; let layer = SetMultipleResponseHeadersLayer::overriding(vec![ (header::X_FRAME_OPTIONS, HeaderValue::from_static("DENY")).into(), (header::CONTENT_LENGTH, |res: &Response<MyBody>| { res.body().size_hint().exact() .map(|size| HeaderValue::from_str(&size.to_string()).unwrap()) }).into(), ]); ``` - `set-header`: add `SetMultipleRequestHeadersLayer` and `SetMultipleRequestHeaders` for setting multiple request headers at once, mirroring the response-side API ([#677]) - `classify`: add `From<i32>` and `From<NonZeroI32>` impls for `GrpcCode`. Unrecognized status codes map to `GrpcCode::Unknown` ([#506]) ## Changed - `compression`: compress `application/grpc-web` responses. Previously all `application/grpc*` content types were excluded from compression; now only `application/grpc` (non-web) is excluded ([#408]) ## Fixed - `fs`: fix `ServeDir` returning 500 instead of 405 for non-GET/HEAD requests when `call_fallback_on_method_not_allowed` is enabled but no fallback service is configured ([#587]) - `fs`: remove duplicate `cfg` attribute on `is_reserved_dos_name` ([#675]) [#408]: https://github.com/tower-rs/tower-http/pull/408 [#506]: https://github.com/tower-rs/tower-http/pull/506 [#587]: https://github.com/tower-rs/tower-http/pull/587 [#672]: https://github.com/tower-rs/tower-http/pull/672 [#675]: https://github.com/tower-rs/tower-http/pull/675 [#677]: https://github.com/tower-rs/tower-http/pull/677 ## All PRs * ci: fix flaky encoding test, add nightly stress test job by @jlizen in https://github.com/tower-rs/tower-http/pull/670 * ci: use static timeout in stress-test workflow by @jlizen in https://github.com/tower-rs/tower-http/pull/671 * Fix serve_dir method not allowed handling when no fallback is configured by @soerenmeier in https://github.com/tower-rs/tower-http/pull/587 * Do compress grpc-web responses by @bouk in https://github.com/tower-rs/tower-http/pull/408 * add From<i32> impl for GrpcCode by @gshipilov in https://github.com/tower-rs/tower-http/pull/506 * feat(set_header): refactor and improve multiple header middleware by @seun-ja in https://github.com/tower-rs/tower-http/pull/672 * Remove duplicate cfg attribute for is_reserved_dos_name by @GlenDC in https://github.com/tower-rs/tower-http/pull/675 * feat: set multiple request header by @seun-ja in https://github.com/tower-rs/tower-http/pull/677 * chore: release 0.6.11 by @jlizen in https://github.com/tower-rs/tower-http/pull/673 ## New Contributors * @gshipilov made their first contribution in https://github.com/tower-rs/tower-http/pull/506 * @seun-ja made their first contribution in https://github.com/tower-rs/tower-http/pull/672 **Full Changelog**: https://github.com/tower-rs/tower-http/compare/tower-http-0.6.10...tower-http-0.6.11 </details>
chore: update rust dependencies
Some checks failed
CI / Test (pull_request) Failing after 17m56s
7f72e9719a
Wuast94 scheduled this pull request to auto merge when all checks succeed 2026-07-14 10:33:46 +02:00
Wuast94 force-pushed updatarr/rust-dependencies-17605dfeaf from 7f72e9719a
Some checks failed
CI / Test (pull_request) Failing after 17m56s
to ad6865ef2b
All checks were successful
CI / Test (pull_request) Successful in 23m1s
2026-07-14 11:52:12 +02:00
Compare
Wuast94 deleted branch updatarr/rust-dependencies-17605dfeaf 2026-07-14 12:46:11 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
vault/vrds!186
No description provided.