Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: switch reqwest and hf-hub from native-tls to rustls

Louis Beaumont4b5f91a8aa2b
diff --git a/Cargo.lock b/Cargo.lock
index e2e64fdf0..189e08905 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -609,6 +609,28 @@ dependencies = [
"arrayvec",
]
+[[package]]
+name = "aws-lc-rs"
+version = "1.16.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a054912289d18629dc78375ba2c3726a3afe3ff71b4edba9dedfca0e3446d1fc"
+dependencies = [
+ "aws-lc-sys",
+ "zeroize",
+]
+
+[[package]]
+name = "aws-lc-sys"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fa7e52a4c5c547c741610a2c6f123f3881e409b714cd27e6798ef020c514f0a"
+dependencies = [
+ "cc",
+ "cmake",
+ "dunce",
+ "fs_extra",
+]
+
[[package]]
name = "axum"
version = "0.7.9"
@@ -1991,6 +2013,12 @@ dependencies = [
"linux-raw-sys 0.9.4",
]
+[[package]]
+name = "dunce"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
+
[[package]]
name = "ecdsa"
version = "0.16.9"
@@ -2926,10 +2954,10 @@ dependencies = [
"http",
"indicatif",
"log",
- "native-tls",
"num_cpus",
"rand 0.8.5",
"reqwest",
+ "rustls 0.23.37",
"serde",
"serde_json",
"thiserror 1.0.69",
@@ -6310,6 +6338,7 @@ version = "0.23.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4"
dependencies = [
+ "aws-lc-rs",
"log",
"once_cell",
"ring",
@@ -6363,6 +6392,7 @@ version = "0.103.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53"
dependencies = [
+ "aws-lc-rs",
"ring",
"rustls-pki-types",
"untrusted",
diff --git a/Cargo.toml b/Cargo.toml
index c226817ad..77cedf84b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,8 +16,10 @@ edition = "2021"
[workspace.dependencies]
# AI
tokenizers = "0.21.0"
-hf-hub = { version = "0.3.2", git = "https://github.com/neo773/hf-hub", features = [
+hf-hub = { version = "0.3.2", git = "https://github.com/neo773/hf-hub", default-features = false, features = [
"rustls-tls",
+ "tokio",
+ "ureq",
] }
log = "0.4"
tracing = "0.1.40"
diff --git a/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.toml
index 31bcfcd2c..c4dad732d 100644
--- a/crates/screenpipe-audio/Cargo.toml
+++ b/crates/screenpipe-audio/Cargo.toml
@@ -39,7 +39,7 @@ chrono = { version = "0.4.31", features = ["serde"] }
# v5/v6: 3x faster, 6000+ languages, better accuracy
vad-rs = { git = "https://github.com/screenpipe/vad-rs-1.git", default-features = false }
anyhow = "1.0.86"
-hf-hub = "0.3.2"
+hf-hub = { workspace = true }
# https://github.com/pdeljanov/Symphonia/tree/master?tab=readme-ov-file#optimizations
symphonia = { version = "0.5.4", features = ["aac", "isomp4", "opt-simd"] }
rubato = "0.15.0"