fix(deps): update rust crate tower-http to 0.7#192
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
Author
⚠ Artifact update problemRenovate 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:
The artifact failure details are included below: File name: Cargo.lock |
✅ Deploy Preview for cn-devtools-website canceled.
|
✅ Deploy Preview for cn-devtools-app canceled.
|
778a56a to
df1dd1e
Compare
df1dd1e to
9cc118e
Compare
9cc118e to
24d14b2
Compare
24d14b2 to
46223f7
Compare
46223f7 to
9bf5ee7
Compare
9bf5ee7 to
0536b0d
Compare
✅ Deploy Preview for cn-devtools-app canceled.
|
0536b0d to
4f58bb4
Compare
✅ Deploy Preview for cn-devtools-app canceled.
|
4f58bb4 to
dcc3e1d
Compare
dcc3e1d to
5b499fa
Compare
5b499fa to
62377d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.4→0.7Release Notes
tower-rs/tower-http (tower-http)
v0.7.0Compare 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)timeout: addDeadlineBodyfor non-resetting body timeouts, applied via the newRequestBodyDeadlineLayerandResponseBodyDeadlineLayer(#688)Unlike
TimeoutBody, which resets its deadline on every frame,DeadlineBodycaps 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.fs: add strongETagsupport toServeDir, includingIf-MatchandIf-None-Matchprecondition handling per RFC 9110.304 Not Modifiedresponses now carry theETagandLast-Modifiedvalidators (#691)fs: add aBackendtrait to makeServeDirwork with non-filesystem sources (e.g. embedded assets or object storage). The defaultTokioBackendpreserves existing behavior. UseServeDir::with_backend()to plug in custom implementations (#684)fs: addhtml_as_default_extensionoption toServeDir, appending.htmlwhen the request path has no extension (#519)fs: addredirect_path_prefixoption toServeDir, prepending a prefix on trailing-slash redirects so the service can be mounted under a sub-path (#486)validate-request: addValidateRequestHeaderLayer::has_header_value()to reject requests when a header does not have an expected value (#360)body:UnsyncBoxBody::new()constructor andFrom<ServeFileSystemResponseBody>conversion to avoid double-boxing when combiningServeDirresponses with other body types (#537)limit: implementDefaultforlimit::ResponseBodywhen the wrapped body also implementsDefault(#679)Changed
breaking:
compression: the middleware now handles the*wildcard andidentity;q=0in Accept-Encoding per RFC 9110 §12.5.3. Requests that previously fell back to identity (e.g.*;q=0oridentity;q=0with 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 theSizeAbovepredicate threshold fromu16tou64, allowing minimum sizes above 64 KiB (#704)breaking: remove the implicit no-op
tokioandasync-compressionfeatures. These were kept as no-op features in 0.6.x for backwards compatibility after the switch todep:syntax in #642. Downstream crates that activatetower-http/tokioortower http/async-compressionshould 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.GrpcCodeandGrpcFailureClassare now#[non_exhaustive], andGrpcStatusis exported from theclassifymodule (#422)breaking:
follow-redirect:FollowRedirectnow forwards requestExtensionsto redirected requests instead of dropping them. TheStandardpolicy drops extensions on cross-origin redirections (same-origin keeps them). Opt out withFollowRedirectLayer::preserve_extensions(false); keep specific types withFilterCredentials::allow_extension::<T>()or all of them withkeep_all_extensions(). (#706)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, soFilterCredentialsno longer re-sendsCookie/Authorizationto a same-origin target reached after cross-origin hop. CustomPolicy::on_requestimpls now see the previous hop's filtered request, not the original. (#706)trace:DefaultOnRequest,DefaultOnResponse,DefaultOnFailure, andDefaultOnEosnow 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 theVaryheader defaults (#674)MSRV bumped from 1.64 to 1.65 (#684)
Fixed
fs:ServeDirandServeFilenow emit aVary: Accept-Encodingresponseheader when precompressed serving is configured, ensuring caches correctly
distinguish between compressed and uncompressed variants (#692)
services: reject a trailing slash for file paths. File requests with a trailing slash now return404 Not Foundinstead of serving the file (#678)fs: fixServeDirstripping 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: fireon_eoswhen the inner body reportsis_end_streamwith a precise content-length (#687)on-early-drop: suppress the early-drop guard whenis_end_streamis reported after a data frame (#687)set-header: makeSetMultipleRequestHeadersandSetMultipleResponseHeadersClonefor non-CloneHTTP bodies (#703)Thanks
New Contributors
v0.6.11Compare Source
Added
set-header: addSetMultipleResponseHeadersLayerandSetMultipleResponseHeaderfor setting multiple response headers at once.Supports
overriding,appending, andif_not_presentmodes. Headervalues can be fixed or computed dynamically via closures (#672)
set-header: addSetMultipleRequestHeadersLayerandSetMultipleRequestHeadersfor setting multiple request headers at once,mirroring the response-side API (#677)
classify: addFrom<i32>andFrom<NonZeroI32>impls forGrpcCode.Unrecognized status codes map to
GrpcCode::Unknown(#506)Changed
compression: compressapplication/grpc-webresponses. Previously allapplication/grpc*content types were excluded from compression; now onlyapplication/grpc(non-web) is excluded (#408)Fixed
fs: fixServeDirreturning 500 instead of 405 for non-GET/HEAD requestswhen
call_fallback_on_method_not_allowedis enabled but no fallback serviceis configured (#587)
fs: remove duplicatecfgattribute onis_reserved_dos_name(#675)All PRs
New Contributors
Full Changelog: tower-rs/tower-http@tower-http-0.6.10...tower-http-0.6.11
v0.6.10Compare Source
Added
follow-redirect: exposeAttempt::method()andAttempt::previous_method()so redirect policies can react to method changes across redirects (e.g.
POST to GET on 301/303) (#559)
Fixed
tokioandasync-compressionas no-op features. These will beremoved next breaking release (#667)
What's Changed
New Contributors
Full Changelog: tower-rs/tower-http@tower-http-0.6.9...tower-http-0.6.10
v0.6.9Compare Source
Added:
on-early-drop: middleware that detects when a response future or responsebody is dropped before completion (#636)
Two events get hooks: the response future being dropped before
the inner service produces a response, and the response body being
dropped before reaching end-of-stream.
Install custom callbacks with
OnEarlyDropLayer::builder():Or route both events through a
trace::OnFailurehook withEarlyDropsAsFailures. Place this layer inside aTraceLayerso theemitted events inherit the request span:
fs: makeAsyncReadBody::with_capacitypublic (#415)Changed:
async-compressionfeature is removed (#642)tokiofeature is removed (#628)fs: no longer auto-enables thetracingcrate feature; enabletracingexplicitly to restore error logging on
ServeDirIO failures (#614)Fixed
trace: restore failure classification at end-of-stream (#483)follow-redirect: support unicode URLs (swapsiri-stringdep forurl) (#646)fs: reject reserved Windows DOS device names (CON,COM1, etc.) inServeDir(#663)All the PRs
New Contributors
Full Changelog: tower-rs/tower-http@tower-http-0.6.8...tower-http-0.6.9
v0.6.8Compare Source
Fixed
multiple_membersin Gzip decoder, since HTTP context only uses onemember. (#621)
What's Changed
multiple_membersoption for gzip decoder by @ducaale in #621New Contributors
Full Changelog: tower-rs/tower-http@tower-http-0.6.7...tower-http-0.6.8
v0.6.7Compare Source
Added
TimeoutLayer::with_status_code(status)to define the status code returnedwhen timeout is reached. (#599)
Deprecated
auth::require_authorizationis too basic for real-world. (#591)TimeoutLayer::new()should be replaced withTimeoutLayer::with_status_code(). (Previously wasStatusCode::REQUEST_TIMEOUT) (#599)Fixed
on_eosis now called even for successful responses. (#580)ServeDir: call fallback when filename is invalid (#586)decompressionwill not fail when body is empty (#618)New Contributors
Full Changelog: tower-rs/tower-http@tower-http-0.6.6...tower-http-0.6.7
v0.6.6Compare Source
Fixed
New Contributors
Full Changelog: tower-rs/tower-http@tower-http-0.6.5...tower-http-0.6.6
v0.6.5Compare Source
Added
append_trailing_slash()mode (#547)Fixed
vary: accept-encodingif already set (#572)New Contributors
Full Changelog: tower-rs/tower-http@tower-http-0.6.4...tower-http-0.6.5
v0.6.4: tower-http 0.6.4Compare Source
Added
ServiceExttrait for chaining layers onto an arbitrary http service justlike
ServiceBuilderExtallows forServiceBuilder(#563)Fixed
S::ErrorforServiceimpls ofRequestBodyTimeout<S>andResponseBodyTimeout<S>(#533)is_end_stream(#535)fs::ServeDir(#553)content-lenghtof 1 in response to range requests to emptyfiles (#556)
AsyncRequireAuthorization, use the original inner service after it isready, instead of using a clone (#561)
v0.6.3: tower-http 0.6.3Compare Source
This release was yanked because its definition of
ServiceExtwas quite unhelpful, in a way that's very unlikely that anybody would start depending on within the small timeframe before this was yanked, but that was technically breaking to change.v0.6.2Compare Source
Changed:
CompressionBody<B>now propagatesB's size hint in itshttp_body::Bodyimplementation, if compression is disabled (#531)
content-lengthto be included in an HTTP message with thisbody for those cases
New Contributors
Full Changelog: tower-rs/tower-http@tower-http-0.6.1...tower-http-0.6.2
v0.6.1: v0.6.1Compare Source
Fixed
New Contributors
v0.6.0: v0.6.0Compare Source
Changed:
bodymodule is disabled except forcatch-panic,decompression-*,fs, orlimitfeatures (BREAKING) (#477)tower0.5 (#503)Fixed
v0.5.2: v0.5.2Compare Source
Added:
vary: accept-encodingheader on compressed responses (#399)x-gzipas equivalent togzipinaccept-encodingrequest header (#467)Fixed
v0.5.1: v0.5.1Compare Source
zstdinServeFileResponseBodyandResponseFuture(#455)HttpMakeClassifierandGrpcMakeClassifier(#455)Fixed
ServeDirnow no longer redirects from/directoryto/directory/if
append_index_html_on_directoriesis disabled (#421)v0.5.0: v0.5.0Compare Source
Changed
Fixed
http-range-header to
0.4Configuration
📅 Schedule: (UTC)
* * 1 * *)🚦 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.
This PR was generated by Mend Renovate. View the repository job log.