# 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.90"
name = "tscribe"
version = "0.1.1"
authors = ["Ruben Jongejan <ruben.jongejan@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Transcribe any video/audio URL into agent-friendly markdown using whisper.cpp"
homepage = "https://github.com/rvben/tscribe"
readme = "README.md"
keywords = [
    "transcription",
    "whisper",
    "yt-dlp",
    "cli",
    "speech-to-text",
]
categories = [
    "command-line-utilities",
    "multimedia::audio",
]
license = "MIT"
repository = "https://github.com/rvben/tscribe"

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

[[bin]]
name = "tscribe"
path = "src/main.rs"

[[test]]
name = "cli"
path = "tests/cli.rs"

[[test]]
name = "e2e"
path = "tests/e2e.rs"

[[test]]
name = "model_download"
path = "tests/model_download.rs"

[dependencies.anyhow]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.clap_complete]
version = "4.6.2"

[dependencies.directories]
version = "5"

[dependencies.futures-util]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hound]
version = "3"

[dependencies.indicatif]
version = "0.17"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "stream",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "fs",
    "process",
    "signal",
]

[dependencies.url]
version = "2"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dependencies.which]
version = "7"

[dependencies.whisper-rs]
version = "0.13"
features = ["whisper-cpp-log"]
default-features = false

[dev-dependencies.assert_cmd]
version = "2"

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

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

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

[dev-dependencies.wiremock]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.whisper-rs]
version = "0.13"
features = [
    "whisper-cpp-log",
    "metal",
]
default-features = false

[profile.release]
lto = "thin"
codegen-units = 1
strip = true
