make player backend a generic trait

This commit is contained in:
Mark
2024-05-13 16:58:15 +02:00
parent a316f6282e
commit 46fdb20953
7 changed files with 472 additions and 280 deletions

View File

@@ -3,16 +3,15 @@ name = "musicdb-lib"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
awedio = { version = "0.2.0", optional = true }
base64 = "0.21.2"
base64 = "0.22.1"
colorize = "0.1.0"
rand = "0.8.5"
rc-u8-reader = "2.0.16"
sysinfo = "0.30.5"
tokio = { version = "1.29.1", features = ["sync"] }
rodio = { version = "0.18.0", optional = true }
sysinfo = "0.30.12"
tokio = { version = "1.37.0", features = ["sync"] }
[features]
playback = ["awedio"]
default = ["playback"]
playback = ["dep:rodio"]