# 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 = "2021"
name = "spotatui"
version = "0.40.2"
authors = ["LargeModGames <LargeModGames@gmail.com>"]
build = false
exclude = [
    ".github/demo.gif",
    ".github/workflows",
    ".github/ISSUE_TEMPLATE",
    "target/",
    "snap/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Spotify client for the terminal written in Rust, powered by Ratatui"
homepage = "https://github.com/LargeModGames/spotatui"
documentation = "https://github.com/LargeModGames/spotatui"
readme = "README.md"
keywords = [
    "spotify",
    "tui",
    "cli",
    "terminal",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/LargeModGames/spotatui"

[package.metadata.deb]
maintainer = "LargeModGames <LargeModGames@gmail.com>"
copyright = "2025, LargeModGames"
license-file = [
    "LICENSE",
    "4",
]
depends = "$auto"
suggests = "yt-dlp, ffmpeg"
section = "utils"
priority = "optional"

[features]
all-sources = [
    "local-files",
    "subsonic",
    "internet-radio",
    "youtube",
]
alsa-backend = [
    "streaming",
    "librespot-playback/alsa-backend",
]
audio-decode = ["dep:rodio"]
audio-viz = [
    "realfft",
    "pipewire",
]
audio-viz-cpal = [
    "realfft",
    "cpal",
]
cover-art = [
    "ratatui-image",
    "image",
]
default = [
    "telemetry",
    "streaming",
    "audio-viz-cpal",
    "macos-media",
    "discord-rpc",
    "mpris",
    "self-update",
    "windows-media",
    "scripting",
]
discord-rpc = ["discord-rich-presence"]
gstreamer-backend = [
    "streaming",
    "librespot-playback/gstreamer-backend",
]
internet-radio = [
    "audio-decode",
    "dep:stream-download",
    "dep:icy-metadata",
]
jackaudio-backend = [
    "streaming",
    "librespot-playback/jackaudio-backend",
]
local-files = [
    "audio-decode",
    "dep:lofty",
    "dep:symphonia",
]
macos-media = [
    "objc2-media-player",
    "objc2-foundation",
    "objc2-app-kit",
    "objc2",
    "block2",
    "streaming",
]
mpris = ["mpris-server"]
portaudio-backend = [
    "streaming",
    "librespot-playback/portaudio-backend",
]
pulseaudio-backend = [
    "streaming",
    "librespot-playback/pulseaudio-backend",
]
rodio-backend = [
    "streaming",
    "librespot-playback/rodio-backend",
]
rodiojack-backend = [
    "streaming",
    "librespot-playback/rodiojack-backend",
]
scripting = ["dep:mlua"]
sdl-backend = [
    "streaming",
    "librespot-playback/sdl-backend",
]
self-update = [
    "dep:self_update",
    "dep:sha2",
    "dep:hex",
]
streaming = [
    "librespot-core",
    "librespot-playback",
    "librespot-connect",
    "librespot-oauth",
    "librespot-metadata",
    "librespot-protocol",
    "protobuf",
]
subsonic = [
    "dep:md-5",
    "audio-decode",
    "dep:tempfile",
    "reqwest/stream",
]
telemetry = []
windows-media = [
    "smtc-tokio",
    "streaming",
]
youtube = [
    "audio-decode",
    "dep:tempfile",
]

[[bin]]
name = "spotatui"
path = "src/main.rs"
bench = false

[dependencies.anyhow]
version = "1.0.102"

[dependencies.backtrace]
version = "0.3.76"

[dependencies.chrono]
version = "0.4.45"

[dependencies.clap]
version = "4.6"
features = ["cargo"]

[dependencies.clap_complete]
version = "4.6"

[dependencies.colorgrad]
version = "0.8.0"

[dependencies.cpal]
version = "0.17"
optional = true

[dependencies.crossterm]
version = "0.29"

[dependencies.dirs]
version = "6.0"

[dependencies.discord-rich-presence]
version = "1.1"
optional = true

[dependencies.fern]
version = "0.7.1"

[dependencies.futures]
version = "0.3.32"

[dependencies.hex]
version = "0.4"
optional = true

[dependencies.icy-metadata]
version = "0.6"
optional = true
default-features = false

[dependencies.image]
version = "0.25"
optional = true

[dependencies.keepawake]
version = "0.6"

[dependencies.librespot-connect]
version = "0.8"
optional = true

[dependencies.librespot-core]
version = "0.8"
optional = true

[dependencies.librespot-metadata]
version = "0.8"
optional = true

[dependencies.librespot-oauth]
version = "0.8"
optional = true

[dependencies.librespot-protocol]
version = "0.8"
optional = true
default-features = false

[dependencies.lofty]
version = "0.24"
optional = true

[dependencies.log]
version = "0.4.32"

[dependencies.md-5]
version = "0.11"
optional = true

[dependencies.mlua]
version = "0.12"
features = [
    "lua54",
    "vendored",
    "serde",
]
optional = true

[dependencies.open]
version = "5.3"

[dependencies.openssl]
version = "0.10"
optional = true

[dependencies.protobuf]
version = "3.7"
optional = true

[dependencies.rand]
version = "0.8.4"

[dependencies.ratatui]
version = "0.30"
features = [
    "crossterm",
    "layout-cache",
]
default-features = false

[dependencies.ratatui-image]
version = "11.0.4"
features = ["crossterm"]
optional = true
default-features = false

[dependencies.realfft]
version = "3.4"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "blocking",
]
default-features = false

[dependencies.rodio]
version = "0.22"
optional = true

[dependencies.rspotify]
version = "0.16"
features = [
    "cli",
    "env-file",
    "client-reqwest",
    "reqwest-rustls-tls",
]
default-features = false

[dependencies.self_update]
version = "0.44"
features = [
    "archive-tar",
    "archive-zip",
    "compression-flate2",
    "compression-zip-deflate",
]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.11"
optional = true

[dependencies.stream-download]
version = "0.24"
features = ["reqwest-rustls"]
optional = true
default-features = false

[dependencies.symphonia]
version = "0.6"
features = [
    "mp3",
    "flac",
    "ogg",
    "wav",
    "aiff",
    "isomp4",
    "mkv",
    "pcm",
    "vorbis",
]
optional = true
default-features = false

[dependencies.tempfile]
version = "3"
optional = true

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

[dependencies.tokio-tungstenite]
version = "0.29"
features = ["rustls-tls-webpki-roots"]

[dependencies.tui-bar-graph]
version = "0.3.3"

[dependencies.tui-equalizer]
version = "0.2.0-alpha"

[dependencies.unicode-width]
version = "0.2.2"

[dependencies.url]
version = "2.5"

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.vergen]
version = ">=9.0.6, <9.1"
default-features = false

[target.'cfg(all(target_os = "linux", not(target_env = "musl")))'.dependencies.arboard]
version = "3.4"
features = ["wayland-data-control"]

[target.'cfg(all(target_os = "linux", not(target_env = "musl")))'.dependencies.librespot-playback]
version = "0.8"
features = ["alsa-backend"]
optional = true
default-features = false

[target.'cfg(all(target_os = "linux", not(target_env = "musl")))'.dependencies.pipewire]
version = "0.10"
optional = true

[target.'cfg(all(target_os = "linux", target_env = "musl"))'.dependencies.arboard]
version = "3.4"
features = ["wayland-data-control"]

[target.'cfg(all(target_os = "linux", target_env = "musl"))'.dependencies.librespot-playback]
version = "0.8"
features = ["rodio-backend"]
optional = true
default-features = false

[target.'cfg(target_env = "musl")'.dependencies.openssl-sys]
version = "0.9"
features = ["vendored"]

[target.'cfg(target_os = "linux")'.dependencies.mpris-server]
version = "0.10"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.arboard]
version = "3.4"

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.librespot-playback]
version = "0.8"
features = ["portaudio-backend"]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3"
features = ["NSImage"]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-media-player]
version = "0.3"
optional = true

[target.'cfg(target_os = "windows")'.dependencies.arboard]
version = "3.4"

[target.'cfg(target_os = "windows")'.dependencies.librespot-playback]
version = "0.8"
features = ["rodio-backend"]
optional = true
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.smtc-tokio]
version = "0.1.0"
optional = true

[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
strip = true
