Skip to content

chore(deps): update to tower-http 0.7 - #3062

Merged
seanmonstar merged 2 commits into
seanmonstar:masterfrom
tottoto:update-to-tower-http-0.7
Sep 22, 2026
Merged

seanmonstar merged 2 commits into
seanmonstar:masterfrom
tottoto:update-to-tower-http-0.7

Conversation

@tottoto

@tottoto tottoto commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Updates to tower-http 0.7.

@seanmonstar

Copy link
Copy Markdown
Owner

Hm, I restarted the jobs but, again the brotli tests might be hanging. A bug in tower-http?

@seanmonstar

Copy link
Copy Markdown
Owner

Submitted a fix to tower-http: tower-rs/tower-http#712

@uckelman

uckelman commented Sep 3, 2026

Copy link
Copy Markdown

The just-released tower-http 0.7.1 has tower-rs/tower-http#712 in it. Might be worth re-running the checks here with that?

@tottoto
tottoto force-pushed the update-to-tower-http-0.7 branch 2 times, most recently from 2df9e1a to eb7e265 Compare September 3, 2026 21:28
@uckelman

uckelman commented Sep 3, 2026 •

Copy link
Copy Markdown

Oh, that's funny---tinyvec published an update between my previous comment and this one, and 1.13.0 seems broken...

Update: I reported the problem with tinyvec and there's already a PR to fix it, so I expect it won't be too long before that's no longer a blocker: Lokathor/tinyvec#226

@tottoto
tottoto force-pushed the update-to-tower-http-0.7 branch from eb7e265 to 482bb75 Compare September 4, 2026 09:45
@uckelman

uckelman commented Sep 4, 2026

Copy link
Copy Markdown

Hmm, the failure here doesn't look obviously related to tinyvec or the tower-http patch accepted for 0.7.1:

https://github.com/seanmonstar/reqwest/blob/master/tests/client.rs#L443C1-L451C27

#[cfg(feature = "default-tls")]
#[cfg_attr(feature = "http3", ignore = "enabling http3 seems to break this, why?")]
#[tokio::test]
async fn test_allowed_methods() {
    let resp = reqwest::Client::builder()
        .https_only(true)
        .build()
        .expect("client builder")
        .get("https://google.com")
        .send()
        .await;

    assert!(resp.is_ok());

    let resp = reqwest::Client::builder()
        .https_only(true)
        .build()
        .expect("client builder")
        .get("http://google.com")
        .send()
        .await;

    assert!(resp.is_err());
}

The failure is on the first assert.

@tottoto
tottoto force-pushed the update-to-tower-http-0.7 branch from 482bb75 to 33fe186 Compare September 22, 2026 13:19
@uckelman

Copy link
Copy Markdown

Here's why yoke-derive is failing: unicode-org/icu4x#8506

@seanmonstar
seanmonstar merged commit aff2ddb into seanmonstar:master Sep 22, 2026
39 checks passed
@tottoto
tottoto deleted the update-to-tower-http-0.7 branch September 22, 2026 16:26
@uckelman

Copy link
Copy Markdown

There's a new yoke-derive (0.8.4) now so it's likely that it could be unpinned here.

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.

3 participants