Commit b99b5f1
committed
build: eliminate duplicate HTTP stack by standardizing on async (tokio/reqwest)
Unified hf-hub feature declarations across all crates to use only the async API
(tokio/reqwest), removing the sync API (ureq) from the dependency tree entirely.
Changes:
- whisperforge-core: switch hf-hub from ureq→tokio feature; add minimal tokio
runtime (rt feature only) embedded in ensure_silero_model()
- whisperforge: explicit default-features=false on hf-hub to prevent ureq
re-entry via feature unification
- vad_silero.rs: refactor ensure_silero_model() to use async API internally
while preserving synchronous public signature (block_on pattern)
Result: ureq@3.3.0 eliminated, single HTTP client (reqwest) in binary.
Dependency reduction: 715 → 681 nodes (-34, -4.8%).
No breaking API changes; tokio runtime created locally per download (negligible cost).1 parent b024216 commit b99b5f1
4 files changed
Lines changed: 16 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
| 116 | + | |
108 | 117 | | |
109 | 118 | | |
110 | | - | |
| 119 | + | |
111 | 120 | | |
112 | | - | |
| 121 | + | |
113 | 122 | | |
114 | 123 | | |
115 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments