whispercpp 0.1.0

Safe Rust bindings for whisper.cpp speech recognition. Bundled patched build with memory-safety hardening, exception-catching FFI shim, and Send + Sync types.
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95"
name = "whispercpp"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for whisper.cpp speech recognition. Bundled patched build with memory-safety hardening, exception-catching FFI shim, and Send + Sync types."
readme = "README.md"
keywords = [
    "whisper",
    "asr",
    "speech-to-text",
    "transcription",
    "audio",
]
categories = [
    "multimedia::audio",
    "api-bindings",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/findit-studio/whispercpp"

[package.metadata.docs.rs]
features = ["serde"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
coreml = ["whispercpp-sys/coreml"]
cuda = ["whispercpp-sys/cuda"]
default = []
hipblas = ["whispercpp-sys/hipblas"]
metal = ["whispercpp-sys/metal"]
musa = ["whispercpp-sys/musa"]
openblas = ["whispercpp-sys/openblas"]
opencl = ["whispercpp-sys/opencl"]
openvino = ["whispercpp-sys/openvino"]
serde = [
    "dep:serde",
    "smol_str/serde",
]
sycl = ["whispercpp-sys/sycl"]
vulkan = ["whispercpp-sys/vulkan"]

[lib]
name = "whispercpp"
path = "src/lib.rs"

[[example]]
name = "smoke"
path = "examples/smoke.rs"

[dependencies.serde]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.smol_str]
version = "0.3"
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.whispercpp-sys]
version = "0.1"
default-features = false

[dev-dependencies.hound]
version = "3"

[dev-dependencies.serde_json]
version = "1"

[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(tarpaulin)"]