# 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"
name = "moosicbox_audio_encoder"
version = "0.4.0"
authors = ["Braden Steffaniak"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Audio converter helper"
readme = "README.md"
keywords = [
    "audio",
    "convert",
    "converter",
    "encoding",
]
categories = [
    "compression",
    "encoding",
]
license = "MPL-2.0"
repository = "https://github.com/MoosicBox/MoosicBox"

[package.metadata]
examples = true

[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",
]

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

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

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

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

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

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

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

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

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

[dependencies.thiserror]
version = "2.0.18"
