speakrs 0.3.1

Speaker diarization in Rust
# 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.85"
name = "speakrs"
version = "0.3.1"
authors = ["Praveen Perera"]
build = false
include = [
    "/src/**",
    "/examples/**",
    "/README.md",
    "/LICENSE",
    "/Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Speaker diarization in Rust"
documentation = "https://docs.rs/speakrs"
readme = "README.md"
keywords = [
    "speaker",
    "diarization",
    "audio",
    "pyannote",
    "onnx",
]
categories = [
    "multimedia::audio",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/avencera/speakrs"

[package.metadata.docs.rs]
all-features = true

[features]
_metrics = []
coreml = [
    "dep:objc2",
    "dep:objc2-core-ml",
    "dep:objc2-foundation",
    "dep:block2",
]
cuda = ["ort/cuda"]
default = ["online"]
load-dynamic = [
    "ort/load-dynamic",
    "dep:libloading",
]
online = [
    "dep:hf-hub",
    "hf-hub/ureq",
    "hf-hub/native-tls",
]

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

[[example]]
name = "assign_transcript_speakers"
path = "examples/assign_transcript_speakers.rs"

[[example]]
name = "diarize_wav"
path = "examples/diarize_wav.rs"

[[example]]
name = "print_turns"
path = "examples/print_turns.rs"

[[example]]
name = "speaker_airtime"
path = "examples/speaker_airtime.rs"

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.hf-hub]
version = "0.5"
optional = true
default-features = false

[dependencies.kodama]
version = "0.3.0"

[dependencies.libloading]
version = "0.8.9"
optional = true

[dependencies.ndarray]
version = "0.17.2"

[dependencies.ndarray-linalg]
version = "0.18.1"
features = ["openblas-static"]

[dependencies.ndarray-npy]
version = "0.10.0"

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

[dependencies.rayon]
version = "1.11.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.approx]
version = "0.5.1"

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

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

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-ml]
version = "0.3"
features = [
    "MLModel",
    "MLMultiArray",
    "MLModelConfiguration",
    "MLDictionaryFeatureProvider",
    "MLFeatureValue",
    "MLFeatureProvider",
    "MLPredictionOptions",
    "alloc",
    "block2",
]
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
features = [
    "NSArray",
    "NSDictionary",
    "NSError",
    "NSObject",
    "NSString",
    "NSURL",
    "NSValue",
    "NSSet",
    "NSEnumerator",
    "NSObjCRuntime",
]
optional = true