chore: update dependencies

This commit is contained in:
Mark
2025-08-23 11:32:01 +02:00
parent bf100f38e3
commit c23d487a02
12 changed files with 39 additions and 33 deletions

View File

@@ -7,12 +7,12 @@ edition = "2021"
[dependencies]
musicdb-lib = { path = "../musicdb-lib" }
clap = { version = "4.4.6", features = ["derive"] }
headers = "0.3.8"
clap = { version = "4.5.45", features = ["derive"] }
headers = "0.4.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.37.0", optional = true, features = ["rt"] }
rocket = { version = "0.5.0", optional = true }
tokio = { version = "1.47.1", optional = true, features = ["rt"] }
rocket = { version = "0.5.1", optional = true }
html-escape = { version = "0.2.13", optional = true }
rocket_ws = "0.1.1"
rocket_seek_stream = "0.2.6"

View File

@@ -302,14 +302,14 @@ fn now_playing_ids(data: &State<Data>) -> String {
}
#[get("/song/<id>")]
fn song1(data: &State<Data>, id: SongId) -> Option<SeekStream> {
fn song1(data: &State<Data>, id: SongId) -> Option<SeekStream<'_>> {
song(data, id)
}
#[get("/song/<id>/<_>")]
fn song2(data: &State<Data>, id: SongId) -> Option<SeekStream> {
fn song2(data: &State<Data>, id: SongId) -> Option<SeekStream<'_>> {
song(data, id)
}
fn song(data: &State<Data>, id: SongId) -> Option<SeekStream> {
fn song(data: &State<Data>, id: SongId) -> Option<SeekStream<'_>> {
let db = data.db.lock().unwrap();
if let Some(song) = db.get_song(&id) {
song.cached_data().cache_data_start_thread(&*db, song);