cloud_api_client: Update yawc to 0.4.2 (#64728)

Moves `cloud_api_client` off the `zed-industries/yawc` fork pin
(`71a452f`) to the upstream crates.io release, `yawc` 0.4.2.

The fork's only commit beyond upstream was an earlier version of a wasm
connect fix. Upstream shipped a more complete fix in 0.4.0
([infinitefield/yawc@f1c6317](https://github.com/infinitefield/yawc/commit/f1c6317eff64a01433aad683280e22ddff4f9c3f)):

- `connect` settles on the browser's `open`, `error`, or `close` event.
- The wasm `WebSocket` owns its event handlers instead of leaking them
with `Closure::forget`.
- `Drop` unregisters the handlers and calls `close()`, including when
the connect future is dropped mid-handshake.

That last point matters for the web Cloud client, which drops a pending
connect after 30 seconds. With the fork, the abandoned browser socket
kept handshaking indefinitely. Delta hit the same leak in its web client
and has already moved to 0.4.2.

The other changes between the fork and 0.4.2 are native-only: opt-in
HTTP/2 WebSockets, SOCKS5 proxy support, and a deflate decompression
fix. The APIs `cloud_api_client` uses are unchanged. The lock file also
picks up `send_wrapper` and bumps `hyper` to 1.11 and `h2` to 0.4.19,
which `yawc` 0.4.2 requires.

Checked with `cargo check -p cloud_api_client` for native and
`wasm32-unknown-unknown`.

Release Notes:

- N/A
This commit is contained in:
Max Brunsfeld
2026-09-24 23:32:55 +00:00
committed by GitHub
parent ec609f84c1
commit 7fdb97cad5
2 changed files with 27 additions and 19 deletions
Generated
+26 -18
View File
@@ -1845,9 +1845,9 @@ dependencies = [
"aws-smithy-async",
"aws-smithy-runtime-api",
"aws-smithy-types",
"h2 0.4.12",
"h2 0.4.19",
"http 1.3.1",
"hyper 1.7.0",
"hyper 1.11.1",
"hyper-rustls",
"hyper-util",
"pin-project-lite",
@@ -7928,9 +7928,9 @@ dependencies = [
[[package]]
name = "h2"
version = "0.4.12"
version = "0.4.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386"
checksum = "ef8e5e5a340588f4452631496976cf8636d4a7ecf600239fdc27615d2530bc16"
dependencies = [
"atomic-waker",
"bytes 1.11.1",
@@ -8425,21 +8425,20 @@ dependencies = [
[[package]]
name = "hyper"
version = "1.7.0"
version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e"
checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43"
dependencies = [
"atomic-waker",
"bytes 1.11.1",
"futures-channel",
"futures-core",
"h2 0.4.12",
"h2 0.4.19",
"http 1.3.1",
"http-body 1.0.1",
"httparse",
"itoa",
"pin-project-lite",
"pin-utils",
"smallvec",
"tokio",
"want",
@@ -8452,7 +8451,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
dependencies = [
"http 1.3.1",
"hyper 1.7.0",
"hyper 1.11.1",
"hyper-util",
"log",
"rustls",
@@ -8468,7 +8467,7 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0"
dependencies = [
"hyper 1.7.0",
"hyper 1.11.1",
"hyper-util",
"pin-project-lite",
"tokio",
@@ -8501,7 +8500,7 @@ dependencies = [
"futures-util",
"http 1.3.1",
"http-body 1.0.1",
"hyper 1.7.0",
"hyper 1.11.1",
"ipnet",
"libc",
"percent-encoding",
@@ -12264,7 +12263,7 @@ dependencies = [
"http 1.3.1",
"http-body 1.0.1",
"http-body-util",
"hyper 1.7.0",
"hyper 1.11.1",
"hyper-rustls",
"hyper-timeout",
"hyper-util",
@@ -15436,7 +15435,7 @@ dependencies = [
"http 1.3.1",
"http-body 1.0.1",
"http-body-util",
"hyper 1.7.0",
"hyper 1.11.1",
"hyper-rustls",
"hyper-util",
"js-sys",
@@ -16410,6 +16409,12 @@ dependencies = [
"serde_core",
]
[[package]]
name = "send_wrapper"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73"
[[package]]
name = "serde"
version = "1.0.229"
@@ -22697,8 +22702,9 @@ checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049"
[[package]]
name = "yawc"
version = "0.3.3"
source = "git+https://github.com/zed-industries/yawc?rev=71a452f551cac178367eaac5d7418a09afa1f3a2#71a452f551cac178367eaac5d7418a09afa1f3a2"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35e709a1923e34cf52d5b1466653b8da2f0360bccfbdd9870c5bf78732d4faad"
dependencies = [
"base64 0.22.1",
"bytes 1.11.1",
@@ -22706,13 +22712,15 @@ dependencies = [
"futures 0.3.34",
"getrandom 0.2.16",
"http-body-util",
"hyper 1.7.0",
"hyper 1.11.1",
"hyper-util",
"js-sys",
"log",
"nom 8.0.0",
"percent-encoding",
"pin-project",
"rand 0.8.6",
"send_wrapper",
"sha1",
"thiserror 2.0.17",
"tokio",
@@ -23075,11 +23083,11 @@ dependencies = [
"encoding_rs",
"futures-core",
"futures-util",
"h2 0.4.12",
"h2 0.4.19",
"http 1.3.1",
"http-body 1.0.1",
"http-body-util",
"hyper 1.7.0",
"hyper 1.11.1",
"hyper-rustls",
"hyper-util",
"ipnet",
+1 -1
View File
@@ -932,7 +932,7 @@ which = "8"
windows-core = "0.62"
windows-registry = "0.6.0"
yaml-rust2 = "0.8"
yawc = { git = "https://github.com/zed-industries/yawc", rev = "71a452f551cac178367eaac5d7418a09afa1f3a2", version = "0.3.3" }
yawc = "0.4.2"
zeroize = "1.8"
zstd = "0.11"