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,11 +7,11 @@ edition = "2021"
[dependencies]
musicdb-lib = { path = "../musicdb-lib", default-features = false }
clap = { version = "4.4.6", features = ["derive"] }
directories = "5.0.1"
regex = "1.9.3"
speedy2d = { version = "1.12.0", optional = true }
toml = "0.7.6"
clap = { version = "4.5.45", features = ["derive"] }
directories = "6.0.0"
regex = "1.11.1"
speedy2d = { version = "2.1.0", optional = true }
toml = "0.9.5"
# musicdb-mers = { version = "0.1.0", path = "../musicdb-mers", optional = true }
uianimator = "0.1.1"
@@ -27,7 +27,9 @@ default = ["gui", "default-playback"]
# enables syncplayer modes, where the client mirrors the server's playback
gui = ["speedy2d"]
# merscfg = ["mers", "gui"]
merscfg = []
# mers = ["musicdb-mers"]
mers = []
playback = []
default-playback = ["playback", "musicdb-lib/default-playback"]
playback-via-playback-rs = ["playback", "musicdb-lib/playback-via-playback-rs"]

View File

@@ -1,4 +1,4 @@
use std::{fmt::Display, rc::Rc, sync::Arc};
use std::{fmt::Display, sync::Arc};
use musicdb_lib::data::CoverId;
use speedy2d::{
@@ -30,7 +30,7 @@ pub struct Content {
text: String,
color: Color,
background: Option<Color>,
formatted: Option<Rc<FormattedTextBlock>>,
formatted: Option<FormattedTextBlock>,
}
#[allow(unused)]

View File

@@ -1,4 +1,5 @@
// #![allow(unused)]
#![allow(dead_code)]
#![allow(unused_variables)]
use std::{
io::{BufReader, Write},
@@ -146,7 +147,6 @@ fn main() {
| Mode::GuiSyncplayerNetwork
);
#[cfg(feature = "playback")]
#[allow(unused)]
let mut cache_manager = None;
#[cfg(feature = "playback")]
let mut player = if is_syncplayer {
@@ -160,6 +160,12 @@ fn main() {
} else {
None
};
// prevent unused assignment warning, we might
// need cache manager at some point -_-
#[cfg(feature = "playback")]
if false {
drop(cache_manager);
}
#[allow(unused_labels)]
'ifstatementworkaround: {
// use if+break instead of if-else because we can't #[cfg(feature)] the if statement,