# 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.87"
name = "audio_samples_qoe"
version = "0.1.0"
authors = ["Jack Geraghty <jgeraghty049@gmail.com>"]
build = false
exclude = [
    "python/notebooks/",
    "python/docs/",
    "python/examples/",
    "python/tests/",
    "benches/compare_cpp.sh",
    ".github/",
    ".python-version",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Perceptual audio quality metrics (ViSQOL MOS-LQO and SCOREQ) - pure-Rust implementations over the audio_samples ecosystem."
homepage = "https://github.com/jmg049/audio_samples_qoe"
readme = "README.md"
keywords = [
    "audio",
    "quality",
    "visqol",
    "mos",
    "dsp",
]
categories = [
    "multimedia::audio",
    "science",
]
license = "MIT"
repository = "https://github.com/jmg049/audio_samples_qoe"

[features]
default = []
python = [
    "dep:pyo3",
    "dep:numpy",
]
scoreq = [
    "dep:ort",
    "dep:ureq",
]

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

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

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

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

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

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

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

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

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

[dependencies.audio_samples]
version = "1.0.13"
features = [
    "transforms",
    "vad",
    "statistics",
    "processing",
    "resampling",
    "editing",
    "envelopes",
    "channels",
]
default-features = false

[dependencies.audio_samples_io]
version = "0.3.2"
features = [
    "wav",
    "flac",
]

[dependencies.miette]
version = "7.6.0"
features = ["fancy"]

[dependencies.ndarray]
version = "0.17.2"

[dependencies.numpy]
version = "0.29"
optional = true

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

[dependencies.pyo3]
version = "0.29"
features = [
    "extension-module",
    "abi3-py310",
]
optional = true

[dependencies.spectrograms]
version = "2.1.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.ureq]
version = "3.3.0"
optional = true

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[profile.release]
lto = true
