[dependencies.audiopus]
optional = true
version = "0.2.0"

[dependencies.fdk-aac]
optional = true
version = "0.8.0"

[dependencies.flacenc]
optional = true
version = "0.5.1"

[dependencies.log]
features = ["release_max_level_trace"]
version = "0.4.32"

[dependencies.mp3lame-encoder]
optional = true
version = "0.2.4"

[dependencies.ogg]
optional = true
version = "0.9.2"

[dependencies.opus]
optional = true
version = "0.3.1"

[dependencies.switchy_fs]
default-features = false
features = ["std"]
optional = true
version = "0.4.0"

[dependencies.thiserror]
version = "2.0.18"

[features]
aac = ["dep:fdk-aac"]
default = [
    "aac",
    "flac",
    "mp3",
    "opus",
]
fail-on-warnings = ["switchy_fs?/fail-on-warnings"]
flac = ["dep:flacenc"]
mp3 = ["dep:mp3lame-encoder"]
opus = [
    "dep:audiopus",
    "dep:ogg",
    "dep:opus",
    "dep:switchy_fs",
]

[package]
authors = ["Braden Steffaniak"]
categories = [
    "compression",
    "encoding",
]
description = "Audio converter helper"
edition = "2024"
keywords = [
    "audio",
    "convert",
    "converter",
    "encoding",
]
license = "MPL-2.0"
name = "moosicbox_audio_encoder"
readme = "README.md"
repository = "https://github.com/MoosicBox/MoosicBox"
version = "0.4.0"

[package.metadata]
examples = true
