Files
polyscribe/Cargo.toml

42 lines
1.5 KiB
TOML

[package]
name = "polyscribe"
version = "0.1.0"
edition = "2024"
license = "MIT"
[features]
# Default: build without whisper to keep tests lightweight; enable `whisper` to use whisper-rs.
default = []
# Enable whisper-rs dependency (CPU-only unless combined with gpu-* features)
whisper = ["dep:whisper-rs"]
# GPU backends map to whisper-rs features
gpu-cuda = ["whisper", "whisper-rs/cuda"]
gpu-hip = ["whisper", "whisper-rs/hipblas"]
# Vulkan path currently doesn't use whisper directly here; placeholder feature
gpu-vulkan = []
# explicit CPU fallback feature (no effect at build time, used for clarity)
cpu-fallback = []
[dependencies]
anyhow = "1.0.98"
clap = { version = "4.5.43", features = ["derive"] }
clap_complete = "4.5.28"
clap_mangen = "0.2"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.142"
toml = "0.8"
chrono = { version = "0.4", features = ["clock"] }
reqwest = { version = "0.12", features = ["blocking", "json"] }
sha2 = "0.10"
# Make whisper-rs optional; enabled via `whisper` feature
# Pin whisper-rs to a known-good commit for reproducible builds.
# 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"
indicatif = "0.17"
ctrlc = "3.4"
cliclack = "0.3"
[dev-dependencies]
tempfile = "3"