mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 00:26:31 -06:00
- Build-time: pre-compress static assets (.gz, .br, .zst) via compress-assets.ts - Runtime: serve pre-compressed embedded assets with Accept-Encoding negotiation - ISR cache: lazy per-encoding compression (compress on first request, cache result) - tower-http: enable runtime compression for API/SSR responses (respects Content-Encoding)
51 lines
1.5 KiB
TOML
51 lines
1.5 KiB
TOML
[package]
|
|
name = "api"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "xevion"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
argon2 = "0.5"
|
|
aws-config = "1.8.12"
|
|
aws-sdk-s3 = "1.119.0"
|
|
axum = { version = "0.8.8", features = ["multipart"] }
|
|
axum-extra = { version = "0.12", features = ["cookie"] }
|
|
blurhash = "0.2.3"
|
|
clap = { version = "4.5.54", features = ["derive", "env"] }
|
|
dashmap = "6.1.0"
|
|
dotenvy = "0.15"
|
|
futures = "0.3.31"
|
|
image = "0.25.9"
|
|
include_dir = "0.7.4"
|
|
mime_guess = "2.0.5"
|
|
moka = { version = "0.12.12", features = ["future"] }
|
|
nu-ansi-term = "0.50.3"
|
|
parking_lot = "0.12.5"
|
|
rand = "0.9.2"
|
|
reqwest = { version = "0.13.1", default-features = false, features = ["rustls", "charset", "json", "stream"] }
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
serde_json = "1.0.148"
|
|
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "uuid", "time", "migrate"] }
|
|
thiserror = "2.0.17"
|
|
time = { version = "0.3.44", features = ["formatting", "macros", "serde"] }
|
|
tokio = { version = "1.49.0", features = ["full"] }
|
|
tokio-util = { version = "0.7.18", features = ["io"] }
|
|
tower = "0.5"
|
|
tower-http = { version = "0.6.8", features = ["trace", "cors", "limit", "compression-full"] }
|
|
|
|
# Compression for ISR cache
|
|
zstd = "0.13"
|
|
brotli = "8"
|
|
flate2 = "1.0"
|
|
tracing = "0.1.44"
|
|
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "json"] }
|
|
ulid = { version = "1", features = ["serde"] }
|
|
urlencoding = "2.1"
|
|
uuid = { version = "1", features = ["serde", "v4"] }
|
|
|
|
[profile.release]
|
|
strip = true
|