Revert "[build] pin whisper-rs dependency to a specific commit for reproducible builds; update documentation accordingly"

This reverts commit 152fde36ae.
This commit is contained in:
2025-08-12 06:00:10 +02:00
parent 3f1e634e2d
commit 278ca1b523
4 changed files with 3 additions and 15 deletions

4
Cargo.lock generated
View File

@@ -1959,7 +1959,7 @@ dependencies = [
[[package]] [[package]]
name = "whisper-rs" name = "whisper-rs"
version = "0.14.3" version = "0.14.3"
source = "git+https://github.com/tazz4843/whisper-rs?rev=135b60b85a15714862806b6ea9f76abec38156f1#135b60b85a15714862806b6ea9f76abec38156f1" source = "git+https://github.com/tazz4843/whisper-rs#135b60b85a15714862806b6ea9f76abec38156f1"
dependencies = [ dependencies = [
"whisper-rs-sys", "whisper-rs-sys",
] ]
@@ -1967,7 +1967,7 @@ dependencies = [
[[package]] [[package]]
name = "whisper-rs-sys" name = "whisper-rs-sys"
version = "0.13.0" version = "0.13.0"
source = "git+https://github.com/tazz4843/whisper-rs?rev=135b60b85a15714862806b6ea9f76abec38156f1#135b60b85a15714862806b6ea9f76abec38156f1" source = "git+https://github.com/tazz4843/whisper-rs#135b60b85a15714862806b6ea9f76abec38156f1"
dependencies = [ dependencies = [
"bindgen", "bindgen",
"cfg-if", "cfg-if",

View File

@@ -29,9 +29,7 @@ chrono = { version = "0.4", features = ["clock"] }
reqwest = { version = "0.12", features = ["blocking", "json"] } reqwest = { version = "0.12", features = ["blocking", "json"] }
sha2 = "0.10" sha2 = "0.10"
# Make whisper-rs optional; enabled via `whisper` feature # Make whisper-rs optional; enabled via `whisper` feature
# Pin whisper-rs to a known-good commit for reproducible builds. whisper-rs = { git = "https://github.com/tazz4843/whisper-rs", default-features = false, optional = true }
# To update: run `cargo update -p whisper-rs --precise 135b60b85a15714862806b6ea9f76abec38156f1` (adjust SHA) and update this rev.
whisper-rs = { git = "https://github.com/tazz4843/whisper-rs", rev = "135b60b85a15714862806b6ea9f76abec38156f1", default-features = false, optional = true }
libc = "0.2" libc = "0.2"
indicatif = "0.17" indicatif = "0.17"
ctrlc = "3.4" ctrlc = "3.4"

View File

@@ -14,10 +14,6 @@ Example GitHub Actions job (outline)
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- name: Print resolved whisper-rs rev
run: |
echo "Resolved whisper-rs revision:" && \
awk '/name = "whisper-rs"/{f=1} f&&/source = "git\+.*whisper-rs#/{match($0,/#([0-9a-f]{7,40})"/,m); if(m[1]){print m[1]; exit}}' Cargo.lock
- name: Build - name: Build
run: cargo build --all-targets --locked run: cargo build --all-targets --locked
- name: Test - name: Test

View File

@@ -13,12 +13,6 @@ Rust toolchain
- rustup install stable - rustup install stable
- rustup default stable - rustup default stable
Dependency pinning
- We pin whisper-rs (git dependency) to a known-good commit in Cargo.toml for reproducibility.
- To bump it, resolve/test the desired commit locally, then run:
- cargo update -p whisper-rs --precise 135b60b85a15714862806b6ea9f76abec38156f1
Replace the SHA with the desired commit and update the rev in Cargo.toml accordingly.
Build Build
- CPU-only (default): - CPU-only (default):
- cargo build - cargo build