35 lines
989 B
TOML
35 lines
989 B
TOML
[package]
|
||
name = "rust-scribe"
|
||
version = "0.1.0"
|
||
edition = "2021"
|
||
description = "A high-performance video/audio transcriber with timestamps using Rust and Whisper."
|
||
authors = ["Warren Lo"]
|
||
|
||
[dependencies]
|
||
# FFmpeg 綁定:用於音頻提取和重採樣
|
||
ffmpeg-next = "8.0"
|
||
|
||
# Whisper.cpp 的 Rust 綁定:核心轉寫引擎
|
||
whisper-rs = "0.12"
|
||
|
||
whisper-rs-sys = "0.10"
|
||
|
||
# 用於命令行參數解析 (比手動解析更專業)
|
||
clap = { version = "4.5", features = ["derive"] }
|
||
|
||
# 用於處理錯誤
|
||
anyhow = "1.0"
|
||
|
||
# 可選:如果 whisper-rs 需要額外的數學運算支持
|
||
ndarray = "0.15"
|
||
|
||
|
||
|
||
# --- 新增以下內容 ---
|
||
[target.'cfg(target_os = "macos")'.dependencies]
|
||
# 如果未來需要顯式依賴某些 crate 可放在這裡
|
||
|
||
# 關鍵:告訴 cargo 在 macOS 上編譯 whisper-rs (當啟用 metal 時) 需要連結哪些框架
|
||
# 注意:whisper-rs 的 build script 通常會自動處理,但有時需要手動干預
|
||
# 更可靠的方法是在 .cargo/config.toml 中設置
|