# 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 = "nihility-listener"
version = "0.3.1"
authors = ["nihilityer <nihilityer@mail.nihilityer.top>"]
build = false
publish = [
    "gitea",
    "crates-io",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "nihility project asr module"
homepage = "https://github.com/nihilityer/nihility-listener"
documentation = "https://docs.rs/nihility-listener"
readme = "README.md"
keywords = [
    "nihility",
    "asr",
    "vad",
]
license = "MIT"
repository = "https://github.com/nihilityer/nihility-listener"

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

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

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

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

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

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

[dependencies.cpal]
version = "0.16"
default-features = false

[dependencies.ndarray]
version = "0.16"
default-features = false

[dependencies.ndarray-npy]
version = "0.9"
default-features = false

[dependencies.nihility-config]
version = "0.2.0"

[dependencies.num-complex]
version = "0.4"
default-features = false

[dependencies.ort]
version = "2.0.0-rc.10"
features = ["ndarray"]

[dependencies.realfft]
version = "3.5"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "alloc",
]
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tokenizers]
version = "0.22"
features = [
    "esaxx_fast",
    "onig",
    "progressbar",
]
default-features = false

[dependencies.tokio]
version = "1.48"
features = [
    "sync",
    "macros",
]
default-features = false

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

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

[dev-dependencies.nihility-log]
version = "0.1.2"

[dev-dependencies.tokio]
version = "1.48"
features = [
    "test-util",
    "macros",
    "sync",
    "rt-multi-thread",
    "rt",
]

[lints.clippy]
unwrap_used = "deny"
