# 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 = "pmetal-vocoder"
version = "0.3.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Neural vocoder (BigVGAN) for text-to-speech synthesis"
readme = "README.md"
keywords = [
    "machine-learning",
    "llm",
    "fine-tuning",
    "apple-silicon",
    "mlx",
]
categories = [
    "science",
    "algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/epistates/pmetal"
resolver = "2"

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

[dependencies.half]
version = "2"
features = ["zerocopy"]

[dependencies.hf-hub]
version = "0.5"

[dependencies.mlx-rs]
version = "0.25.7"
features = ["safetensors"]
package = "pmetal-mlx-rs"

[dependencies.num-traits]
version = "0.2"

[dependencies.pmetal-core]
version = "0.3.2"
default-features = false

[dependencies.pmetal-mlx]
version = "0.3.2"

[dependencies.safetensors]
version = "0.7"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.zerocopy]
version = "0.8"
features = ["derive"]

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

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "warn"
