yandex-music-rs/Cargo.toml
2026-11-27 19:32:20 +03:00

119 lines
3.6 KiB
TOML

[package]
name = "yandex-music-rs"
version = "0.1.6"
edition = "2021"
description = "Native high-performance, ultra-low-RAM Yandex Music desktop client in Rust + ash Vulkan SDF + taffy + cosmic-text"
[features]
default = []
linux-webview = ["dep:wry", "dep:gtk"]
[[bin]]
name = "yandex-music-rs"
path = "src/main.rs"
[[bin]]
name = "yandex-music-auth"
path = "src/bin/yandex_music_auth.rs"
required-features = ["linux-webview"]
[dependencies]
# Core Windowing & Native UI Engine (ash SDF + taffy + cosmic-text)
winit = "0.30"
raw-window-handle = "0.6"
taffy = "0.16"
cosmic-text = "0.19"
bytemuck = { version = "1", features = ["derive"] }
arboard = "3"
# Pure ash Vulkan Renderer + OpenGL 3.3 Core fallback (Intel HD 3000 / legacy GPUs)
ash = "0.38"
ash-window = "0.13"
glow = "0.14"
glutin = "0.32"
glutin-winit = "0.5"
# Async Runtime & HTTP (pure Rust TLS, tiny memory footprint)
tokio = { version = "1", features = ["rt-multi-thread", "sync", "time", "macros", "io-util"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream", "gzip"] }
urlencoding = "2"
# Serialization & Crypto (Yandex Music API signing & encraw decryption)
serde = { version = "1", features = ["derive"] }
serde_json = "1"
hmac = "0.12"
sha2 = "0.10"
md-5 = "0.10"
base64 = "0.22"
hex = "0.4"
aes = "0.8"
ctr = "0.9"
quick-xml = "0.37"
# Streaming Audio Engine (MP3, FLAC lossless, AAC/M4A + WASAPI)
symphonia = { version = "0.5", features = ["mp3", "flac", "aac", "isomp4", "ogg", "pcm", "wav"] }
cpal = "0.15"
ringbuf = "0.4"
# Vector Icons & Bounded Cover Art Decoding
resvg = "0.45"
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp"] }
lru = "0.12"
crossbeam-channel = "0.5"
parking_lot = "0.12"
dirs = "6"
log = "0.4"
env_logger = "0.11"
anyhow = "1"
[target.'cfg(windows)'.dependencies]
tray-icon = "0.21"
souvlaki = "0.8"
wry = "0.51"
windows-sys = { version = "0.59", features = [
"Win32_Foundation",
"Win32_Graphics_Dwm",
"Win32_System_Power",
"Win32_System_ProcessStatus",
"Win32_System_Threading",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
] }
[target.'cfg(target_os = "linux")'.dependencies]
ksni = { version = "0.3", features = ["blocking"] }
wry = { version = "0.51", default-features = false, features = ["os-webview"], optional = true }
gtk = { version = "0.18", optional = true }
[build-dependencies]
naga = { version = "24", features = ["wgsl-in", "spv-out"] }
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true
panic = "abort"
[package.metadata.deb]
maintainer = "marwy <hhhhyetr456@gmail.com>"
copyright = "2026, marwy"
extended-description = """\
Native high-performance, ultra-low-RAM Yandex Music desktop client \
built in Rust with Vulkan SDF rendering, taffy layout, and cosmic-text."""
section = "sound"
priority = "optional"
depends = "$auto"
recommends = "libvulkan1, mesa-vulkan-drivers, libgl1, libegl1"
maintainer-scripts = "packaging/debian"
assets = [
["target/release/yandex-music-rs", "usr/bin/", "755"],
["target/release/yandex-music-auth", "usr/bin/", "755"],
["assets/icons/app_icon.png", "usr/share/pixmaps/yandex-music-rs.png", "644"],
["assets/icons/app_48.png", "usr/share/icons/hicolor/48x48/apps/yandex-music-rs.png", "644"],
["packaging/icons/64x64.png", "usr/share/icons/hicolor/64x64/apps/yandex-music-rs.png", "644"],
["packaging/icons/128x128.png", "usr/share/icons/hicolor/128x128/apps/yandex-music-rs.png", "644"],
["packaging/icons/256x256.png", "usr/share/icons/hicolor/256x256/apps/yandex-music-rs.png", "644"],
["packaging/yandex-music-rs.desktop", "usr/share/applications/", "644"],
]