[package]
edition = "2024"
name = "plavno"
version = "0.4.0"
build = false
include = [
"src/**",
"tests/*.rs",
"tests/support/**",
"tests/fixtures/**",
"docs/**",
"Cargo.toml",
"Cargo.lock",
"LICENSE",
"README.md",
"intro.png",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight terminal music player for Linux, macOS and Windows with service waves and library shuffle"
readme = "README.md"
keywords = [
"music",
"tui",
"yandex",
"vk",
"player",
]
categories = [
"command-line-utilities",
"multimedia::audio",
]
license = "Apache-2.0"
repository = "https://github.com/gmelikov/plavno"
[features]
test-audio = ["objc2/catch-all"]
[[bin]]
name = "plavno"
path = "src/main.rs"
[[test]]
name = "browser_login"
path = "tests/browser_login.rs"
[[test]]
name = "macos_media"
path = "tests/macos_media.rs"
[[test]]
name = "native_stream"
path = "tests/native_stream.rs"
[[test]]
name = "services"
path = "tests/services.rs"
[[test]]
name = "text_selection"
path = "tests/text_selection.rs"
[[test]]
name = "windows_media"
path = "tests/windows_media.rs"
[[test]]
name = "windows_platform"
path = "tests/windows_platform.rs"
[[test]]
name = "windows_terminal"
path = "tests/windows_terminal.rs"
[dependencies.aes]
version = "0.8"
[dependencies.anyhow]
version = "1"
[dependencies.base64]
version = "0.22"
[dependencies.crossterm]
version = "0.29"
features = ["events"]
default-features = false
[dependencies.ctr]
version = "0.9"
[dependencies.encoding_rs]
version = "0.8"
[dependencies.hmac]
version = "0.12"
[dependencies.html-escape]
version = "0.2"
[dependencies.image]
version = "=0.25.9"
features = [
"jpeg",
"png",
"webp",
]
default-features = false
[dependencies.libc]
version = "0.2"
[dependencies.plavno-platform]
version = "0.1.0"
[dependencies.ratatui]
version = "0.30"
features = ["crossterm"]
default-features = false
[dependencies.regex-lite]
version = "0.1"
[dependencies.rodio]
version = "=0.21.1"
features = [
"playback",
"mp3",
"flac",
"mp4",
"vorbis",
]
default-features = false
[dependencies.rpassword]
version = "7"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha1]
version = "0.10"
[dependencies.sha2]
version = "0.10"
[dependencies.symphonia]
version = "0.5.5"
features = [
"mp3",
"flac",
"isomp4",
"ogg",
"vorbis",
]
default-features = false
[dependencies.symphonia-metadata]
version = "0.5.5"
[dependencies.time]
version = "0.3"
features = ["formatting"]
[dependencies.unicode-segmentation]
version = "1"
[dependencies.unicode-width]
version = "0.2"
[dependencies.ureq]
version = "3"
features = [
"rustls",
"json",
"cookies",
]
default-features = false
[dependencies.url]
version = "2"
[target.'cfg(target_os = "linux")'.dependencies.dbus]
version = "0.9"
[target.'cfg(target_os = "linux")'.dependencies.dbus-crossroads]
version = "0.5"
[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3.2"
features = [
"std",
"NSApplication",
"NSImage",
"NSResponder",
"NSRunningApplication",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
features = [
"std",
"block2",
"NSArray",
"NSData",
"NSDate",
"NSDictionary",
"NSGeometry",
"NSValue",
"NSRunLoop",
"NSString",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-media-player]
version = "0.3.2"
features = [
"std",
"block2",
"objc2-app-kit",
"objc2-core-foundation",
"MPMediaItem",
"MPNowPlayingInfoCenter",
"MPRemoteCommand",
"MPRemoteCommandCenter",
"MPRemoteCommandEvent",
]
default-features = false
[target."cfg(unix)".dependencies.signal-hook]
version = "0.3"
[target."cfg(windows)".dependencies.crossterm_winapi]
version = "0.9.1"
[target."cfg(windows)".dependencies.winapi]
version = "0.3.9"
features = ["winuser"]
[target."cfg(windows)".dependencies.windows]
version = "0.58"
features = [
"Foundation",
"Media",
"Storage_Streams",
"Win32_Foundation",
"Win32_System_WinRT",
"Win32_System_Com",
"Win32_System_LibraryLoader",
"Win32_UI_WindowsAndMessaging",
"Win32_Graphics_Gdi",
"Win32_UI_Shell",
]
[profile.dev]
opt-level = 1
debug = 1
[profile.dev.package."*"]
opt-level = 2
[profile.release]
lto = "thin"
codegen-units = 1
strip = true