# 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"
name = "gigastt"
version = "0.6.1"
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]
coreml = ["ort/coreml"]
cuda = ["ort/cuda"]
default = []
diarization = []
quantize = [
    "dep:onnx-pb",
    "dep:prost",
]

[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_errors"
path = "tests/e2e_errors.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 = "server_integration"
path = "tests/server_integration.rs"

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

[dependencies.anyhow]
version = "1"

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

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

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

[dependencies.onnx-pb]
version = "0.1.4"
optional = true

[dependencies.ort]
version = "2.0.0-rc.12"

[dependencies.prost]
version = "0.6"
optional = true

[dependencies.reqwest]
version = "0.12"
features = ["stream"]

[dependencies.rubato]
version = "0.16"

[dependencies.rustfft]
version = "6"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.symphonia]
version = "0.5"
features = [
    "aac",
    "isomp4",
    "mp3",
    "ogg",
    "flac",
    "pcm",
    "wav",
]

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

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

[dependencies.tracing]
version = "0.1"

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

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

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

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