mirror of
https://github.com/Dummi26/musicdb.git
synced 2026-01-30 05:06:30 +01:00
chore: update dependencies
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user