# 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.91"
name = "blazen-audio-whispercpp"
version = "0.1.139"
authors = ["Zach Handley <zachhandley@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local speech-to-text backend for Blazen using whisper.cpp"
readme = false
license = "AGPL-3.0-or-later"
repository = "https://github.com/ZachHandley/Blazen"
resolver = "2"

[features]
coreml = ["engine"]
cuda = ["engine"]
default = []
engine = ["dep:whisper-rs"]
metal = ["engine"]

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

[dependencies.blazen-model-cache]
version = "0.1.139"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.whisper-rs]
version = "0.16"
optional = true
default-features = false

[lints.clippy]
all = "warn"
pedantic = "warn"

[lints.rust]
dead_code = "warn"
unsafe_code = "warn"
