[package]
name = "selene-daemon"
version = "0.1.1"
description = "Official music player daemon for Selene"

edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true
keywords.workspace = true
categories.workspace = true

[features]
default = []
daemon = ["clap"]
mpris = ["mpris-server", "tokio"]

[dependencies]
lunar-lib = { workspace = true }
selene-core = { workspace = true }
thiserror = { workspace = true }
ciborium = { workspace = true }
blake3 = { workspace = true }

clap = { version = "^4.5.60", features = ["derive"], optional = true }

serde = { version = "^1.0.228", features = ["derive"] }
cpal = "0.17.3"
symphonia = "0.5.5"
rand = "0.10.0"
ringbuf = "0.4.8"
rubato = "1.0.1"
audioadapter-buffers = "2.0.0"

[target.'cfg(unix)'.dependencies]
mpris-server = { version = "0.9.0", optional = true }
tokio = { version = "1.50.0", features = ["rt", "sync"], optional = true }

[[bin]]
name = "selene-daemon"
required-features = ["clap"]
