Inherit dependencies from workspace manifest, and optimize some out (#3655)

* chore: inherit dependencies from workspace, optimize some deps out

* Update bitflags from 2.9.0 to 2.9.1

* Fix temp directory leak in check_java_at_filepath

* Fix build

* Fix lint

* chore(app-lib): refactor overkill `futures` executor usage to Tokio MPSC

* chore: fix Clippy lint

* tweak: optimize out dependency on OpenSSL source build

Contrary to what I expected before, this was caused due to the Tauri
updater plugin using a different TLS stack than everything else.

* chore(labrinth): drop now unused dependency

* Update zip because 2.6.1 got yanked

* Downgrade weezl to 0.1.8

* Mention that p256 is also a blocker for rand 0.9

* chore: sidestep GitHub review requirements

* chore: sidestep GitHub review requirements (2)

* chore: sidestep GitHub review requirements (3)

---------

Co-authored-by: Josiah Glosson <soujournme@gmail.com>
This commit is contained in:
Alejandro González
2025-05-15 22:47:29 +02:00
committed by GitHub
parent 37cc81a36d
commit f19643095e
35 changed files with 876 additions and 1020 deletions

View File

@@ -11,74 +11,72 @@ name = "labrinth"
path = "src/main.rs"
[dependencies]
actix-web = "4.10.2"
actix-rt = "2.9.0"
actix-multipart = "0.7.2"
actix-cors = "0.7.1"
actix-ws = "0.3.0"
actix-files = "0.6.5"
prometheus = "0.13.4" # Locked on 0.13 until actix updates to 0.14
actix-web-prom = { version = "0.9.0", features = ["process"] }
actix-web.workspace = true
actix-rt.workspace = true
actix-multipart.workspace = true
actix-cors.workspace = true
actix-ws.workspace = true
actix-files.workspace = true
prometheus.workspace = true
actix-web-prom = { workspace = true, features = ["process"] }
tracing = "0.1.41"
tracing-actix-web = "0.7.18"
console-subscriber = "0.4.1"
tracing.workspace = true
tracing-actix-web.workspace = true
console-subscriber.workspace = true
tokio = { version = "1.35.1", features = ["sync", "rt-multi-thread"] }
tokio-stream = "0.1.14"
tokio = { workspace = true, features = ["sync", "rt-multi-thread"] }
tokio-stream.workspace = true
futures = "0.3.30"
futures-util = "0.3.30"
async-trait = "0.1.70"
dashmap = "6.1.0"
lazy_static = "1.4.0"
futures.workspace = true
futures-util.workspace = true
async-trait.workspace = true
dashmap.workspace = true
meilisearch-sdk = "0.28.0"
rust-s3 = { version = "0.35.1", default-features = false, features = ["fail-on-err", "tags", "tokio-rustls-tls"] }
reqwest = { version = "0.12.15", features = ["json", "multipart"] }
hyper = { version = "1.6", features = ["full"] }
hyper-tls = "0.6.0"
hyper-util = "0.1.11"
meilisearch-sdk = { workspace = true, features = ["reqwest"] }
rust-s3.workspace = true
reqwest = { workspace = true, features = ["http2", "rustls-tls-webpki-roots", "json", "multipart"] }
hyper-tls.workspace = true
hyper-util.workspace = true
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_with = "3.0.0"
chrono = { version = "0.4.26", features = ["serde"] }
yaserde = "0.12.0"
yaserde_derive = "0.12.0"
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
serde_with.workspace = true
chrono = { workspace = true, features = ["serde"] }
yaserde = { workspace = true, features = ["derive"] }
rand = "0.8.5" # Locked on 0.8 until argon2 updates to 0.9
rand_chacha = "0.3.1" # Locked on 0.3 until we can update rand to 0.9
bytes = "1.4.0"
base64 = "0.22.1"
sha1 = { version = "0.10.6", features = ["std"] }
sha2 = "0.10.9"
hmac = "0.12.1"
argon2 = { version = "0.5.0", features = ["std"] }
murmur2 = "0.1.0"
bitflags = "2.4.0"
hex = "0.4.3"
zxcvbn = "3.1.0"
totp-rs = { version = "5.0.2", features = ["gen_secret"] }
rand.workspace = true
rand_chacha.workspace = true
bytes.workspace = true
base64.workspace = true
sha1.workspace = true
sha2.workspace = true
hmac.workspace = true
argon2.workspace = true
murmur2.workspace = true
bitflags.workspace = true
hex.workspace = true
zxcvbn.workspace = true
totp-rs = { workspace = true, features = ["gen_secret"] }
url = "2.4.0"
urlencoding = "2.1.2"
url.workspace = true
urlencoding.workspace = true
zip = "2.6.1"
zip.workspace = true
itertools = "0.14.0"
itertools.workspace = true
validator = { version = "0.20.0", features = ["derive"] }
regex = "1.10.2"
censor = "0.3.0"
spdx = { version = "0.10.3", features = ["text"] }
validator = { workspace = true, features = ["derive"] }
regex.workspace = true
censor.workspace = true
spdx = { workspace = true, features = ["text"] }
dotenvy = "0.15.7"
thiserror = "2.0.12"
either = "1.13"
dotenvy.workspace = true
thiserror.workspace = true
either.workspace = true
sqlx = { version = "0.8.2", features = [
"runtime-tokio-rustls",
sqlx = { workspace = true, features = [
"runtime-tokio",
"tls-rustls-ring",
"postgres",
"chrono",
"macros",
@@ -86,51 +84,49 @@ sqlx = { version = "0.8.2", features = [
"rust_decimal",
"json",
] }
rust_decimal = { version = "1.33.1", features = [
rust_decimal = { workspace = true, features = [
"serde-with-float",
"serde-with-str",
] }
redis = { version = "0.29.5", features = ["tokio-comp", "ahash", "r2d2"] } # Locked on 0.29 until deadpool-redis updates to 0.30
deadpool-redis = "0.20.0"
clickhouse = { version = "0.13.2", features = ["uuid", "time"] }
uuid = { version = "1.2.2", features = ["v4", "fast-rng", "serde"] }
redis = { workspace = true, features = ["tokio-comp", "ahash", "r2d2"] } # Locked on 0.29 until deadpool-redis updates to 0.30
deadpool-redis.workspace = true
clickhouse = { workspace = true, features = ["uuid", "time"] }
uuid = { workspace = true, features = ["v4", "fast-rng", "serde"] }
maxminddb = "0.26.0"
flate2 = "1.0.25"
tar = "0.4.38"
maxminddb.workspace = true
flate2.workspace = true
tar.workspace = true
sentry = { version = "0.37.0", default-features = false, features = ["backtrace", "contexts", "debug-images", "panic", "rustls", "reqwest"] }
sentry-actix = "0.37.0"
sentry.workspace = true
sentry-actix.workspace = true
image = "0.25.6"
color-thief = "0.2.2"
webp = "0.3.0"
image = { workspace = true, features = ["avif", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"] }
color-thief.workspace = true
webp.workspace = true
woothee = "0.13.0"
woothee.workspace = true
lettre = "0.11.3"
lettre.workspace = true
derive-new = "0.7.0"
rust_iso3166 = "0.1.11"
rust_iso3166.workspace = true
async-stripe = { version = "0.41.0", features = ["runtime-tokio-hyper-rustls"] }
rusty-money = "0.4.1"
json-patch = "4.0.0"
async-stripe = { workspace = true, features = ["billing", "checkout", "connect", "webhook-events"] }
rusty-money.workspace = true
json-patch.workspace = true
ariadne = { path = "../../packages/ariadne" }
ariadne.workspace = true
clap = { version = "4.5", features = ["derive"] }
iana-time-zone = "0.1.61"
clap = { workspace = true, features = ["derive"] }
[target.'cfg(target_os = "linux")'.dependencies]
tikv-jemallocator = { version = "0.6.0", features = ["profiling", "unprefixed_malloc_on_supported_platforms"] }
tikv-jemalloc-ctl = { version = "0.6.0", features = ["stats"] }
jemalloc_pprof = { version = "0.7.0", features = ["flamegraph"] }
tikv-jemallocator = { workspace = true, features = ["profiling", "unprefixed_malloc_on_supported_platforms"] }
tikv-jemalloc-ctl = { workspace = true, features = ["stats"] }
jemalloc_pprof = { workspace = true, features = ["flamegraph"] }
[dev-dependencies]
actix-http = "3.4.0"
actix-http.workspace = true
[build-dependencies]
dotenv-build = "0.1.1"
chrono = "0.4.38"
iana-time-zone = "0.1.60"
dotenv-build.workspace = true
chrono.workspace = true
iana-time-zone.workspace = true