mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-29 13:22:47 -08:00
fix(tauri): pin reqwest to 0.12 so native uploads keep rustls TLS
This commit is contained in:
1 parent
5a7945e2da
commit
6297a4e16e
3 files changed
+22
-6
No files matched your search
Generated
+18
-2
@@ -5188,6 +5188,7 @@ dependencies = [
|
||||
"cookie_store",
|
||||
"encoding_rs",
|
||||
"futures-core",
|
||||
"futures-util",
|
||||
"h2 0.4.15",
|
||||
"http 1.4.2",
|
||||
"http-body 1.1.0",
|
||||
@@ -5209,12 +5210,14 @@ dependencies = [
|
||||
"sync_wrapper 1.0.2",
|
||||
"tokio",
|
||||
"tokio-rustls",
|
||||
"tokio-util",
|
||||
"tower 0.5.3",
|
||||
"tower-http 0.6.11",
|
||||
"tower-service",
|
||||
"url",
|
||||
"wasm-bindgen",
|
||||
"wasm-bindgen-futures",
|
||||
"wasm-streams 0.4.2",
|
||||
"web-sys",
|
||||
"webpki-roots",
|
||||
]
|
||||
@@ -5254,7 +5257,7 @@ dependencies = [
|
||||
"url",
|
||||
"wasm-bindgen",
|
||||
"wasm-bindgen-futures",
|
||||
"wasm-streams",
|
||||
"wasm-streams 0.5.0",
|
||||
"web-sys",
|
||||
]
|
||||
|
||||
@@ -5462,7 +5465,7 @@ dependencies = [
|
||||
"objc2-photos",
|
||||
"percent-encoding",
|
||||
"regex",
|
||||
"reqwest 0.13.4",
|
||||
"reqwest 0.12.28",
|
||||
"sentry",
|
||||
"serde",
|
||||
"serde_json",
|
||||
@@ -8190,6 +8193,19 @@ dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wasm-streams"
|
||||
version = "0.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
|
||||
dependencies = [
|
||||
"futures-util",
|
||||
"js-sys",
|
||||
"wasm-bindgen",
|
||||
"wasm-bindgen-futures",
|
||||
"web-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wasm-streams"
|
||||
version = "0.5.0"
|
||||
|
||||
@@ -41,7 +41,7 @@ percent-encoding = "2"
|
||||
# Enables `stream` (for native_upload's `Body::wrap_stream`) on the reqwest that
|
||||
# tauri-plugin-http pulls in without it. default-features = false keeps
|
||||
# openssl-sys out of the Android cross-compile.
|
||||
reqwest = { version = "0.13", default-features = false, features = ["stream"] }
|
||||
reqwest = { version = "0.12", default-features = false, features = ["stream"] }
|
||||
async-stream = "0.3"
|
||||
base64 = "0.23"
|
||||
tokio-util = { version = "0.7", features = ["codec"] }
|
||||
|
||||
@@ -7,12 +7,12 @@ use std::{
|
||||
|
||||
use base64::Engine;
|
||||
use futures_util::StreamExt;
|
||||
use reqwest::{
|
||||
use serde::Serialize;
|
||||
use tauri::{ipc::Channel, AppHandle, Manager, Runtime};
|
||||
use tauri_plugin_http::reqwest::{
|
||||
header::{AUTHORIZATION, CONTENT_LENGTH, CONTENT_TYPE},
|
||||
Body, Client, ClientBuilder, Method, Url,
|
||||
};
|
||||
use serde::Serialize;
|
||||
use tauri::{ipc::Channel, AppHandle, Manager, Runtime};
|
||||
use tokio::{
|
||||
fs::{File, OpenOptions},
|
||||
io::AsyncWriteExt,
|
||||
|
||||
Reference in new issue
Block a user