Skip to content

Commit 503923d

Browse files
committed
update deps
1 parent 6c27292 commit 503923d

File tree

10 files changed

+301
-242
lines changed

10 files changed

+301
-242
lines changed

Cargo.lock

Lines changed: 87 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,74 @@ members = [
77
"platune-tray",
88
]
99
resolver = "3"
10+
11+
[workspace.dependencies]
12+
axum = "0.8.4"
13+
clap = "4.5.38"
14+
console-subscriber = "0.4.1"
15+
daemon-slayer = { git = "https://github.com/aschey/daemon-slayer", rev = "7742c701c0ad6a409baf1cfb15271427a4cbc09e" }
16+
decal = { git = "https://github.com/aschey/decal", rev = "5693b9770b01372b831d32351118bdd2ab42e09e" }
17+
youtube_dl = { git = "https://github.com/aschey/youtube-dl-rs", rev = "2a2533633ad2d6d718baf63e25b9b7d7c2a053d1" }
18+
slite = { git = "https://github.com/aschey/slite", rev = "0809a9e913183f0d784aa24416e0af08a440eb3b", default-features = false }
19+
directories = "6.0.0"
20+
dotenvy = "0.15.7"
21+
futures = "0.3.31"
22+
futures-util = "0.3.31"
23+
tipsy = "0.6.0"
24+
prost = "0.13.5"
25+
prost-types = "0.13.5"
26+
rcgen = "0.13.2"
27+
hyper-util = "0.1.12"
28+
time = "0.3.41"
29+
tokio = "1.45.1"
30+
tokio-util = "0.7.15"
31+
tokio-stream = "0.1.17"
32+
tonic = "0.13.1"
33+
tonic-build = "0.13.1"
34+
tonic-health = "0.13.1"
35+
tonic-reflection = "0.13.1"
36+
tower = "0.5.2"
37+
tower-http = "0.6.4"
38+
tracing = "0.1.41"
39+
tracing-subscriber = "0.3.19"
40+
tracing-appender = "0.2.3"
41+
uuid = "1.17.0"
42+
vergen-gix = "1.0.9"
43+
console = "0.15.11"
44+
which = "7.0.3"
45+
urlencoding = "2.1.3"
46+
auto-launch = "0.5.0"
47+
souvlaki = { version = "0.8.2", default-features = false }
48+
global-hotkey = "0.7.0"
49+
concread = { version = "0.5.5", default-features = false }
50+
eyre = "0.6.12"
51+
ignore = "0.4.23"
52+
itertools = "0.14.0"
53+
log = "0.4.27"
54+
normpath = "1.3.0"
55+
notify = { version = "8.0.0", default-features = false }
56+
num_cpus = "1.16.0"
57+
regex = "1.11.1"
58+
rust-embed = "8.7.2"
59+
sqlx = { version = "0.8", default-features = false }
60+
strum = "0.27.1"
61+
tap = "1.0.1"
62+
thiserror = "2.0.12"
63+
walkdir = "2.5.0"
64+
async-trait = "0.1.88"
65+
flume = "0.11.1"
66+
lazy-regex = "3.4.1"
67+
reqwest = { version = "0.12.15", default-features = false }
68+
reqwest-middleware = "0.4.2"
69+
reqwest-retry = "0.7.0"
70+
stream-download = "0.21.0"
71+
lofty = "0.22.4"
72+
73+
# testing dependencies
74+
criterion = "0.6.0"
75+
assert_matches = "1.5.0"
76+
rstest = "0.25.0"
77+
ctor = "0.4.2"
78+
pretty_assertions = "1.4.1"
79+
tempfile = "3.20.0"
80+
spin_sleep = "1.3.1"

libplatune/management/Cargo.toml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,46 @@ harness = false
1313
name = "bench"
1414

1515
[dependencies]
16-
concread = { version = "0.5", default-features = false, features = [
16+
concread = { workspace = true, default-features = false, features = [
1717
"arcache",
1818
"arcache-is-hashtrie",
1919
] }
20-
directories = "6"
21-
eyre = "0.6"
22-
futures = "0.3"
23-
ignore = "0.4"
24-
itertools = "0.14"
25-
lazy_static = "1"
26-
lofty = "0.22.4"
27-
log = "0.4"
28-
normpath = "1"
29-
notify = { version = "8", default-features = false, features = [
20+
directories = { workspace = true }
21+
eyre = { workspace = true }
22+
futures = { workspace = true }
23+
ignore = { workspace = true }
24+
itertools = { workspace = true }
25+
lofty = { workspace = true }
26+
log = { workspace = true }
27+
normpath = { workspace = true }
28+
notify = { workspace = true, default-features = false, features = [
3029
"macos_fsevent",
3130
] }
32-
num_cpus = "1"
33-
regex = "1"
34-
rust-embed = "8"
35-
slite = { git = "https://github.com/aschey/slite", rev = "0809a9e913183f0d784aa24416e0af08a440eb3b", default-features = false, features = [
31+
num_cpus = { workspace = true }
32+
regex = { workspace = true }
33+
rust-embed = { workspace = true }
34+
slite = { workspace = true, default-features = false, features = [
3635
"read-files",
3736
] }
38-
sqlx = { version = "0.8", default-features = false, features = [
37+
sqlx = { workspace = true, default-features = false, features = [
3938
"sqlite",
4039
"any",
4140
"macros",
4241
"runtime-tokio",
4342
] }
44-
strum = { version = "0.27", features = ["derive"] }
45-
tap = "1"
46-
thiserror = "2"
47-
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
48-
tokio-stream = { version = "0.1", features = ["net", "sync"] }
49-
tracing = "0.1"
50-
uuid = { version = "1", features = ["v4"] }
51-
walkdir = "2"
43+
strum = { workspace = true, features = ["derive"] }
44+
tap = { workspace = true }
45+
thiserror = { workspace = true }
46+
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
47+
tokio-stream = { workspace = true, features = ["net", "sync"] }
48+
tracing = { workspace = true }
49+
uuid = { workspace = true, features = ["v4"] }
50+
walkdir = { workspace = true }
5251

5352
[dev-dependencies]
54-
criterion = { version = "0.5.1", features = ["async_tokio"] }
55-
ctor = "0.4.2"
56-
pretty_assertions = "1.4.1"
57-
rstest = "0.25.0"
58-
tempfile = "3.20.0"
59-
tracing-subscriber = "0.3.19"
53+
criterion = { workspace = true, features = ["async_tokio"] }
54+
ctor = { workspace = true }
55+
pretty_assertions = { workspace = true }
56+
rstest = { workspace = true }
57+
tempfile = { workspace = true }
58+
tracing-subscriber = { workspace = true }

libplatune/management/src/search/search_entry.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::cmp::Ordering;
22
use std::collections::HashMap;
3+
use std::sync::LazyLock;
34

4-
use lazy_static::lazy_static;
55
use regex::Regex;
66

77
use super::result_score::ResultScore;
@@ -19,13 +19,14 @@ pub(crate) struct SearchEntry {
1919
pub(crate) end_highlight: String,
2020
pub(crate) weights: HashMap<String, f32>,
2121
}
22-
lazy_static! {
23-
static ref MATCH_REGEX: String = format!(
22+
23+
static MATCH_REGEX: LazyLock<String> = LazyLock::new(|| {
24+
format!(
2425
r"(?:{}(.*?){}[^\s]*).*",
2526
START_MATCH_TEXT.replace('{', r"\{").replace('}', r"\}"),
2627
END_MATCH_TEXT.replace('{', r"\{").replace('}', r"\}")
27-
);
28-
}
28+
)
29+
});
2930

3031
impl SearchEntry {
3132
fn score_match(&self) -> ResultScore {

libplatune/player/Cargo.toml

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,44 @@ path = "src/lib.rs"
1111

1212
[dependencies]
1313
derivative = "2"
14-
eyre = "0.6"
15-
flume = "0.11"
16-
futures-util = "0.3"
17-
tokio-util = "0.7"
18-
stream-download = { version = "0.20.0", features = [
14+
eyre = { workspace = true }
15+
flume = { workspace = true }
16+
futures-util = { workspace = true }
17+
tokio-util = { workspace = true }
18+
stream-download = { workspace = true, features = [
1919
"reqwest-rustls",
2020
"reqwest-middleware",
2121
"registry",
2222
"process",
2323
] }
24-
strum = { version = "0.27", features = ["derive"] }
25-
tap = "1"
26-
thiserror = "2"
27-
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
28-
tracing = "0.1"
29-
decal = { git = "https://github.com/aschey/decal", rev = "5693b9770b01372b831d32351118bdd2ab42e09e" }
30-
reqwest-retry = "0.7.0"
24+
strum = { workspace = true, features = ["derive"] }
25+
tap = { workspace = true }
26+
thiserror = { workspace = true }
27+
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
28+
tracing = { workspace = true }
29+
decal = { workspace = true }
30+
reqwest-retry = { workspace = true }
3131
# The default-tls feature seems to break mtls client auth in some cases
32-
reqwest = { version = "0.12", default-features = false, features = [
32+
reqwest = { workspace = true, default-features = false, features = [
3333
"charset",
3434
"http2",
3535
"macos-system-configuration",
3636
"rustls-tls-native-roots",
3737
] }
38-
reqwest-middleware = "0.4.2"
39-
async-trait = "0.1"
40-
youtube_dl = { git = "https://github.com/aschey/youtube-dl-rs", rev = "2a2533633ad2d6d718baf63e25b9b7d7c2a053d1", features = [
41-
"tokio",
42-
] }
43-
regex = "1.11.1"
44-
lazy-regex = "3.4.1"
45-
which = { version = "7.0.3", features = ["tracing"] }
38+
reqwest-middleware = { workspace = true }
39+
async-trait = { workspace = true }
40+
youtube_dl = { workspace = true, features = ["tokio"] }
41+
regex = { workspace = true }
42+
lazy-regex = { workspace = true }
43+
which = { workspace = true, features = ["tracing"] }
4644

4745
[dev-dependencies]
48-
assert_matches = "1.5.0"
49-
async-trait = "0.1.88"
50-
ctor = "0.4.2"
51-
futures = "0.3.31"
52-
pretty_assertions = "1.4.1"
53-
rstest = "0.25.0"
54-
spin_sleep = "1.3.1"
55-
tracing-appender = "0.2.3"
56-
tracing-subscriber = "0.3.19"
46+
assert_matches = { workspace = true }
47+
async-trait = { workspace = true }
48+
ctor = { workspace = true }
49+
futures = { workspace = true }
50+
pretty_assertions = { workspace = true }
51+
rstest = { workspace = true }
52+
spin_sleep = { workspace = true }
53+
tracing-appender = { workspace = true }
54+
tracing-subscriber = { workspace = true }

0 commit comments

Comments
 (0)