Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore(desktop-gpui): depend on bytes for shared upload part buffers

Richie McIlroy1ce4d1e304d0
diff --git a/apps/desktop-gpui/Cargo.lock b/apps/desktop-gpui/Cargo.lock
index 9be0e0e0a..3a2b943d5 100644
--- a/apps/desktop-gpui/Cargo.lock
+++ b/apps/desktop-gpui/Cargo.lock
@@ -1532,6 +1532,7 @@ dependencies = [
"anyhow",
"ashpd 0.11.1",
"base64 0.22.1",
+ "bytes",
"cap-audio",
"cap-camera",
"cap-camera-effects",
diff --git a/apps/desktop-gpui/Cargo.toml b/apps/desktop-gpui/Cargo.toml
index f0823efa0..abf2450ba 100644
--- a/apps/desktop-gpui/Cargo.toml
+++ b/apps/desktop-gpui/Cargo.toml
@@ -147,6 +147,10 @@ tracing-appender = "0.2"
# model downloads. rustls so Linux builds do not pick up an OpenSSL system dep.
# `multipart` is the log/diagnostic-report upload (`src/diagnostics.rs`):
# `/api/desktop/logs` takes a multipart form, the same one the Tauri app posts.
+# Multipart export parts are read once and shared by every PUT attempt of that
+# part. reqwest already builds on this crate, so this makes an existing build
+# unit direct.
+bytes = "1"
reqwest = { version = "0.12", default-features = false, features = [
"json",
"multipart",