[package]
edition = "2024"
rust-version = "1.88"
name = "whisper-macos-cli"
version = "0.1.2"
authors = ["Danilo Teixeira <danilo@example.com>"]
build = "build.rs"
exclude = [
"/.git",
"/.github",
"/.gitignore",
"/.gitattributes",
"/.vscode",
"/.idea",
"/.claude",
"/.opencode",
"/.serena",
"/target",
"**/.DS_Store",
"/lcov.info",
"/tests/proptest-regressions/**",
"/benches/target",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Transcribe audio files locally on Apple Silicon via whisper.cpp with Metal GPU acceleration, exposing a strict stdin/stdout JSON contract for AI agents and Unix pipelines."
homepage = "https://github.com/daniloaguiarbr/whisper-macos-cli"
documentation = "https://docs.rs/whisper-macos-cli"
readme = "README.md"
keywords = [
"whisper",
"transcription",
"macos",
"audio",
"ai-agents",
]
categories = [
"command-line-utilities",
"multimedia::audio",
"api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/daniloaguiarbr/whisper-macos-cli"
[features]
default = ["metal"]
metal = []
slow-tests = []
[lib]
name = "whisper_macos_cli"
path = "src/lib.rs"
[[bin]]
name = "whisper-macos-cli"
path = "src/main.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "cli_subprocess"
path = "tests/cli_subprocess.rs"
[[test]]
name = "concurrent_shutdown"
path = "tests/concurrent_shutdown.rs"
[[test]]
name = "proptest_filters"
path = "tests/proptest_filters.rs"
[[test]]
name = "proptest_language"
path = "tests/proptest_language.rs"
[[test]]
name = "proptest_vad"
path = "tests/proptest_vad.rs"
[[test]]
name = "snapshots"
path = "tests/snapshots.rs"
[[test]]
name = "tempfile_storage"
path = "tests/tempfile_storage.rs"
[[test]]
name = "video_extraction"
path = "tests/video_extraction.rs"
[[test]]
name = "video_real"
path = "tests/video_real.rs"
[[test]]
name = "wiremock_download"
path = "tests/wiremock_download.rs"
[[bench]]
name = "audio_benches"
path = "benches/audio_benches.rs"
[dependencies.anyhow]
version = "1"
[dependencies.clap]
version = "4"
features = [
"derive",
"wrap_help",
"string",
"env",
]
[dependencies.clap_complete]
version = "4"
[dependencies.clap_mangen]
version = "0.2"
[dependencies.ctrlc]
version = "3"
[dependencies.directories]
version = "6"
[dependencies.earshot]
version = "1"
[dependencies.hex]
version = "0.4"
[dependencies.human-panic]
version = "2"
[dependencies.indicatif]
version = "0.17"
[dependencies.is-terminal]
version = "0.4"
[dependencies.libc]
version = "0.2"
[dependencies.ogg]
version = "0.9"
[dependencies.opus-decoder]
version = "0.1"
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"blocking",
"rustls-tls",
"gzip",
]
default-features = false
[dependencies.rubato]
version = "0.16"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["preserve_order"]
[dependencies.sha2]
version = "0.10"
[dependencies.signal-hook]
version = "0.3"
[dependencies.symphonia]
version = "0.5"
features = [
"mp3",
"ogg",
"vorbis",
"flac",
"wav",
"aac",
"isomp4",
]
[dependencies.sys-locale]
version = "0.3"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.uuid]
version = "1"
features = [
"v7",
"serde",
]
[dependencies.whisper-rs]
version = "0.16"
features = [
"metal",
"tracing_backend",
]
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.insta]
version = "1"
features = ["json"]
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"time",
]
[dev-dependencies.wiremock]
version = "0.6"
[build-dependencies.clap]
version = "4"
features = ["derive"]
[build-dependencies.clap_mangen]
version = "0.2"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"