# 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.88"
name = "gigastt"
version = "2.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local STT server powered by GigaAM v3 e2e_rnnt — on-device Russian speech recognition via ONNX Runtime"
readme = "README.md"
keywords = [
    "stt",
    "speech-recognition",
    "gigaam",
    "onnx",
    "russian",
]
categories = [
    "multimedia::audio",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/ekhodzitsky/gigastt"

[features]
ane = ["gigastt-core/ane"]
candle = ["gigastt-core/candle"]
coreml = ["gigastt-core/coreml"]
cuda = ["gigastt-core/cuda"]
default = ["diarization"]
diarization = ["gigastt-core/diarization"]
quantize = ["gigastt-core/quantize"]

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

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

[[test]]
name = "benchmark"
path = "tests/benchmark.rs"
harness = false

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.arc-swap]
version = "1"

[dependencies.axum]
version = "0.8"
features = [
    "ws",
    "multipart",
]

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

[dependencies.dashmap]
version = "6"

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

[dependencies.gigastt-core]
version = "2.4.0"
features = [
    "net",
    "async-pool",
    "file-decode",
]
default-features = false

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

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

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

[dev-dependencies.reqwest]
version = "0.13"
features = ["stream"]

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

[dev-dependencies.tokio-tungstenite]
version = "0.29"
