Fix hf-hub issue
keypair34 committed
Apr 20, 2026 at 20:20 UTC
f7a0964e27415a57def9763fdae9e2fae0aa7eac
1 file changed
+2
-1
Cargo.toml
+2
-1
@@ -25,7 +25,7 @@ crate-type = ["lib", "cdylib", "staticlib"]
25
default = []
26
# Enable Whisper-based speech-to-text transcription via transcribe-rs.
27
# macOS uses Metal GPU acceleration; Android uses CPU-only inference.
28
-whisper = ["dep:transcribe-rs"]
28
+whisper = ["dep:transcribe-rs", "dep:hf-hub"]
29
30
# Android: CPU-only GGUF inference via candle; also needs hf-hub and
31
# mistralrs-core for explicit cache path seeding (dirs::home_dir() panics
@@ -111,6 +111,7 @@ uniffi = { version = "=0.31.0", features = ["tokio"] }
111
# The `whisper` feature in transcribe-rs pulls in platform-specific whisper-rs
112
# (Metal on macOS, Vulkan on Windows/Linux) via its own Cargo.toml cfg gates.
113
transcribe-rs = { git = "https://github.com/setoelkahfi/transcribe-rs", branch = "feature/onde", features = ["whisper"], optional = true }
114
+hf-hub = { version = "0.4", features = ["tokio", "rustls-tls"], default-features = false, optional = true }
115
116
[dependencies.smbcloud-gresiq-sdk]
117
version = "0.3"