# 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.91"
name = "blazen-audio-codec"
version = "0.6.75"
authors = ["Zach Handley <zachhandley@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Neural audio-codec backends for Blazen — encode PCM to discrete codebook tokens and back for generative audio models"
readme = false
license = "MPL-2.0"
repository = "https://github.com/ZachHandley/Blazen"
resolver = "2"

[features]
candle-backbone = [
    "dep:candle-core",
    "dep:candle-nn",
    "dep:candle-transformers",
    "dep:hf-hub",
]
cuda = [
    "candle-backbone",
    "candle-core/cuda",
    "candle-nn/cuda",
    "candle-transformers/cuda",
    "blazen-audio-dac-vendored?/cuda",
]
dac = [
    "candle-backbone",
    "dep:blazen-audio-dac-vendored",
]
default = []
encodec = ["candle-backbone"]
live-models = ["candle-backbone"]
metal = ["candle-backbone"]
snac = ["candle-backbone"]

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

[dependencies.async-trait]
version = "0.1"

[dependencies.blazen-audio]
version = "0.6.75"

[dependencies.blazen-audio-dac-vendored]
version = "0.6.75"
optional = true

[dependencies.candle-core]
version = "0.10"
optional = true

[dependencies.candle-nn]
version = "0.10"
optional = true

[dependencies.candle-transformers]
version = "0.10"
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

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

[lints.clippy]
all = "warn"
pedantic = "warn"

[lints.rust]
dead_code = "warn"
unsafe_code = "warn"
