polyvoice 0.6.2

Speaker diarization library for Rust — online and offline, ONNX-powered, ecosystem-agnostic
Documentation
# 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 = "polyvoice"
version = "0.6.2"
build = false
exclude = [
    "models/*.onnx",
    "models/*.onnx.data",
    "models/int8/*.onnx",
    "models/int8/*.onnx.data",
    "data/",
    "fuzz/",
    "python/",
    "docs/superpowers/",
    "scripts/__pycache__/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Speaker diarization library for Rust — online and offline, ONNX-powered, ecosystem-agnostic"
readme = "README.md"
keywords = [
    "diarization",
    "speaker",
    "onnx",
    "stt",
    "voice",
]
categories = [
    "multimedia::audio",
    "science",
]
license = "MIT"
repository = "https://github.com/ekhodzitsky/polyvoice"

[features]
cli = [
    "onnx",
    "download",
    "segmentation",
    "embedder",
    "clusterer",
    "resegmentation",
    "dep:clap",
]
clusterer = []
coreml = [
    "onnx",
    "ort/coreml",
]
default = []
download = [
    "dep:ureq",
    "dep:dirs",
    "dep:toml",
    "dep:sha2",
    "dep:minisign-verify",
]
embedder = []
ffi = [
    "onnx",
    "download",
]
nnapi = [
    "onnx",
    "ort/nnapi",
]
onnx = ["dep:ort"]
profile-all = [
    "profile-mobile",
    "profile-balanced",
]
profile-balanced = []
profile-mobile = []
resegmentation = []
segmentation = []
spectral = ["dep:faer"]
xnnpack = [
    "onnx",
    "ort/xnnpack",
]

[lib]
name = "polyvoice"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "polyvoice"
path = "src/bin/polyvoice.rs"
required-features = ["cli"]

[[bin]]
name = "polyvoice-bench"
path = "src/bin/polyvoice-bench.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "der_ami"
path = "benches/der_ami.rs"
harness = false

[dependencies.anyhow]
version = "1"

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

[dependencies.crossbeam-queue]
version = "0.3"

[dependencies.dirs]
version = "6"
optional = true

[dependencies.faer]
version = "0.24.0"
features = ["std"]
optional = true

[dependencies.fastrand]
version = "2.4.1"

[dependencies.hound]
version = "3.5"

[dependencies.minisign-verify]
version = "0.2.5"
optional = true

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

[dependencies.num-complex]
version = "0.4"

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

[dependencies.realfft]
version = "3.5"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "1"

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.ureq]
version = "3"
features = ["rustls"]
optional = true
default-features = false

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

[dev-dependencies.criterion]
version = "0.5"

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

[dev-dependencies.loom]
version = "0.7.2"

[dev-dependencies.mockall]
version = "0.13"

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

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

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

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]

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