-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathCargo.toml
More file actions
158 lines (149 loc) · 4.54 KB
/
Copy pathCargo.toml
File metadata and controls
158 lines (149 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[workspace]
members = ["crates/*"]
resolver = "3"
[workspace.package]
version = "0.15.1"
edition = "2024"
rust-version = "1.95.0"
description = "A modern, lightweight music player built with Rust and Dioxus."
license = "MIT"
repository = "https://github.com/Kopuz-org/kopuz"
homepage = "https://github.com/Kopuz-org/kopuz"
keywords = ["music", "player", "audio", "dioxus"]
[workspace.dependencies]
dioxus = { version = "0.7.9", features = [] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"
tokio = { version = "1.0", features = [
"rt",
"time",
"sync",
"macros",
"io-util",
] }
async-recursion = "1.0"
discord-rich-presence = "1.1.0"
lofty = "0.24.0"
image = { version = "0.25", default-features = false, features = [
"jpeg",
"png",
"webp",
] }
rfd = "0.17.2"
percent-encoding = "2.3.2"
dotenvy = "0.15"
http = "1.4.0"
uuid = { version = "1.20.0", features = [
"v4",
"fast-rng",
"macro-diagnostics",
] }
cpal = "0.18.1"
symphonia = { version = "0.6", features = ["all"] }
quick-xml = "0.37"
rtrb = "0.3"
nextcloud-rs = "0.1"
reqwest = { version = "0.13", default-features = false, features = [
"rustls",
"http2",
"charset",
"query",
"form",
] }
rand = "0.10"
directories = "6.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = [
"env-filter",
"fmt",
"json",
] }
tracing-appender = "0.2"
ctrlc = "3.5"
webbrowser = "1.2.1"
base64 = "0.22"
aes-gcm = "0.11"
async-trait = "0.1"
sqlx = { version = "0.8", default-features = false }
arc-swap = "1.7"
fluent-bundle = "0.16"
unic-langid = "0.9"
urlencoding = "2.1.3"
webkit2gtk = "2.0"
libloading = "0.9"
objc2 = "0.6.4"
objc2-foundation = "0.3.2"
objc2-media-player = "0.3.2"
objc2-app-kit = "0.3.2"
objc2-av-foundation = "0.3.2"
objc2-avf-audio = "0.3.2"
block2 = "0.6"
windows = "0.62"
winres = "0.1"
symphonia-adapter-libopus = "0.3"
mpris-server = "0.10.0"
# 0.22 replaced `JNIEnv` with `EnvUnowned` and made `GlobalRef` generic;
# `player/systemint/android.rs` is written against 0.21, which dioxus already
# pulls in. Bumping this again means porting that file first.
jni = "0.21"
ndk-context = "0.1"
thiserror = "2.0"
tokio-tungstenite = "0.30.0"
futures-util = "0.3.30"
tempfile = "3.8.1"
md5 = "0.8"
sha1 = "0.11"
sha2 = "0.11"
httpdate = "1"
hex = "0.4"
rookie = "0.5"
color-thief = "0.2.2"
time = "0.3"
# Headless JS for YouTube (desktop only). VERSION LOCK: rustypipe-botguard 0.1.2
# pins deno_core ^0.331, so deno_core must stay on 0.331.x to share one V8 link.
deno_core = "0.331"
rustypipe-botguard = "0.1.2"
# Workspace components
i18n = { package = "kopuz-i18n", version = "0.15.1", path = "./crates/i18n" }
player = { package = "kopuz-player", version = "0.15.1", path = "./crates/player" }
reader = { package = "kopuz-reader", version = "0.15.1", path = "./crates/reader" }
components = { package = "kopuz-components", version = "0.15.1", path = "./crates/components" }
hooks = { package = "kopuz-hooks", version = "0.15.1", path = "./crates/hooks" }
pages = { package = "kopuz-pages", version = "0.15.1", path = "./crates/pages" }
utils = { package = "kopuz-utils", version = "0.15.1", path = "./crates/utils" }
config = { package = "kopuz-config", version = "0.15.1", path = "./crates/config" }
db = { package = "kopuz-db", version = "0.15.1", path = "./crates/db" }
kopuz = { version = "0.15.1", path = "./crates/kopuz" }
server = { package = "kopuz-server", version = "0.15.1", path = "./crates/server" }
kopuz_route = { package = "kopuz-route", version = "0.15.1", path = "./crates/kopuz_route" }
discord-presence = { package = "kopuz-discord-presence", version = "0.15.1", path = "./crates/discord-presence" }
scrobble = { package = "kopuz-scrobble", version = "0.15.1", path = "./crates/scrobble" }
radio = { package = "kopuz-radio", version = "0.15.1", path = "./crates/radio" }
# Steer code toward the tracing subscriber (see crates/kopuz/src/logging.rs).
# Inherited per-crate via `[lints] workspace = true`. Build scripts (cargo:
# directives), examples, and test diagnostics opt out with `#[expect(...)]`.
[workspace.lints.clippy]
print_stdout = "deny"
print_stderr = "deny"
[profile.release]
strip = "symbols"
opt-level = 3
lto = "thin"
codegen-units = 1
# reader::probe catches panics from symphonia on malformed remote bytes.
panic = "unwind"
[profile.dev.package."*"]
opt-level = 3
[profile.server-dev]
inherits = "dev"
[profile.android-dev]
inherits = "dev"
opt-level = 1
# Release profile for shipping .aab / .apk. Thin LTO keeps link time sane on CI.
[profile.android-release]
inherits = "release"
strip = "symbols"
lto = "thin"
codegen-units = 1
panic = "unwind"