Implement compression quota refunds and admin manual subscription

This commit is contained in:
2025-12-19 23:28:32 +08:00
commit 11f48fd3dd
106 changed files with 27848 additions and 0 deletions

56
Cargo.toml Normal file
View File

@@ -0,0 +1,56 @@
[package]
name = "imageforge"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
axum = { version = "0.8", features = ["multipart"] }
tokio = { version = "1", features = ["full"] }
tower-http = { version = "0.6", features = ["cors", "trace", "compression-full", "fs"] }
axum-extra = { version = "0.12", features = ["cookie"] }
time = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
dotenvy = "0.15"
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "json"] }
redis = { version = "0.24", features = ["tokio-comp", "connection-manager", "streams"] }
# Auth / security
argon2 = "0.5"
base64 = "0.22"
hex = "0.4"
hmac = "0.12"
jsonwebtoken = "9"
rand = "0.8"
sha2 = "0.10"
aes-gcm = "0.10"
# Images
image = { version = "0.25", features = ["avif-native"] }
oxipng = "9"
ravif = "0.11"
webp = "0.3"
rgb = "0.8"
img-parts = "0.4"
# HTTP client (Stripe API)
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }
# Mail
lettre = { version = "0.11", default-features = false, features = ["tokio1", "tokio1-rustls-tls", "builder", "smtp-transport"] }
# ZIP download (batch)
tokio-util = { version = "0.7", features = ["io"] }
zip = "2"