mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
* Migration
* Fixup db models
* Redis
* Stuff
* Switch PKs to BIGSERIALs, insert to notifications_deliveries when inserting notifications
* Queue, templates
* Query cache
* Fixes, fixtures
* Perf, cache template data & HTML bodies
* Notification type configuration, ResetPassword notification type
* Reset password
* Query cache
* Clippy + fmt
* Traces, fix typo, fix user email in ResetPassword
* send_email
* Models, db
* Remove dead code, adjust notification settings in migration
* Clippy fmt
* Delete dead code, fixes
* Fmt
* Update apps/labrinth/src/queue/email.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
* Remove old fixtures
* Unify email retry delay
* Fix type
* External notifications
* Remove `notifications_types_preference_restrictions`, as user notification preferences is out of scope for this PR
* Query cache, fmt, clippy
* Fix join in get_many_user_exposed_on_site
* Remove migration comment
* Query cache
* Update html body urls
* Remove comment
* Add paymentfailed.service variable to PaymentFailed notification variant
* Fix compile error
* Fix deleting notifications
* Update apps/labrinth/src/database/models/user_item.rs
Co-authored-by: Josiah Glosson <soujournme@gmail.com>
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
* Update apps/labrinth/src/database/models/user_item.rs
Co-authored-by: Josiah Glosson <soujournme@gmail.com>
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
* Update Cargo.toml
Co-authored-by: Josiah Glosson <soujournme@gmail.com>
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
* Update apps/labrinth/migrations/20250902133943_notification-extension.sql
Co-authored-by: Josiah Glosson <soujournme@gmail.com>
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
* Address review comments
* Fix compliation
* Update apps/labrinth/src/database/models/users_notifications_preferences_item.rs
Co-authored-by: Josiah Glosson <soujournme@gmail.com>
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
* Use strfmt to format emails
* Configurable Reply-To
* Configurable Reply-To
* Refactor for email background task
* Send some emails inline
* Fix account creation email check
* Revert "Use strfmt to format emails"
This reverts commit e0d6614afe.
* Reintroduce fill_template
* Set password reset email inline
* Process more emails per index
* clippy fmt
* Query cache
---------
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Josiah Glosson <soujournme@gmail.com>
166 lines
3.6 KiB
TOML
166 lines
3.6 KiB
TOML
[package]
|
|
name = "labrinth"
|
|
version = "2.7.0"
|
|
authors = ["geometrically <jai@modrinth.com>"]
|
|
edition.workspace = true
|
|
license = "AGPL-3.0-only"
|
|
|
|
# This seems redundant, but it's necessary for Docker to work
|
|
[[bin]]
|
|
name = "labrinth"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
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.workspace = true
|
|
tracing-actix-web.workspace = true
|
|
console-subscriber.workspace = true
|
|
|
|
tokio = { workspace = true, features = ["sync", "rt-multi-thread"] }
|
|
tokio-stream.workspace = true
|
|
|
|
futures.workspace = true
|
|
futures-util.workspace = true
|
|
async-trait.workspace = true
|
|
dashmap.workspace = true
|
|
paste.workspace = true
|
|
|
|
meilisearch-sdk = { workspace = true, features = ["reqwest"] }
|
|
rust-s3.workspace = true
|
|
reqwest = { workspace = true, features = [
|
|
"http2",
|
|
"rustls-tls-webpki-roots",
|
|
"json",
|
|
"multipart",
|
|
] }
|
|
hyper-rustls.workspace = true
|
|
hyper-util.workspace = true
|
|
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json.workspace = true
|
|
serde_with.workspace = true
|
|
chrono = { workspace = true, features = ["serde"] }
|
|
yaserde = { workspace = true, features = ["derive"] }
|
|
|
|
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.workspace = true
|
|
urlencoding.workspace = true
|
|
|
|
zip.workspace = true
|
|
|
|
itertools.workspace = true
|
|
|
|
validator = { workspace = true, features = ["derive"] }
|
|
regex.workspace = true
|
|
censor.workspace = true
|
|
spdx = { workspace = true, features = ["text"] }
|
|
|
|
dotenvy.workspace = true
|
|
thiserror.workspace = true
|
|
either.workspace = true
|
|
|
|
sqlx = { workspace = true, features = [
|
|
"runtime-tokio",
|
|
"tls-rustls-ring",
|
|
"postgres",
|
|
"chrono",
|
|
"macros",
|
|
"migrate",
|
|
"rust_decimal",
|
|
"json",
|
|
] }
|
|
rust_decimal = { workspace = true, features = [
|
|
"serde-with-float",
|
|
"serde-with-str",
|
|
] }
|
|
redis = { workspace = true, features = ["tokio-comp", "ahash", "r2d2"] }
|
|
deadpool-redis.workspace = true
|
|
clickhouse = { workspace = true, features = ["uuid", "time"] }
|
|
uuid = { workspace = true, features = ["v4", "fast-rng", "serde"] }
|
|
|
|
maxminddb.workspace = true
|
|
flate2.workspace = true
|
|
tar.workspace = true
|
|
|
|
sentry.workspace = true
|
|
sentry-actix.workspace = true
|
|
|
|
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.workspace = true
|
|
|
|
lettre.workspace = true
|
|
|
|
rust_iso3166.workspace = true
|
|
|
|
async-stripe = { workspace = true, features = [
|
|
"billing",
|
|
"checkout",
|
|
"connect",
|
|
"webhook-events",
|
|
] }
|
|
rusty-money.workspace = true
|
|
json-patch.workspace = true
|
|
|
|
ariadne.workspace = true
|
|
|
|
clap = { workspace = true, features = ["derive"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
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.workspace = true
|
|
|
|
[build-dependencies]
|
|
dotenv-build.workspace = true
|
|
chrono.workspace = true
|
|
iana-time-zone.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|