Initial commit: VRBattles API

This commit is contained in:
root
2026-01-20 05:41:25 +00:00
commit c26a1820d5
42 changed files with 6187 additions and 0 deletions

65
Cargo.toml Normal file
View File

@@ -0,0 +1,65 @@
[package]
name = "vrbattles-api"
version = "0.1.0"
edition = "2021"
authors = ["VRBattles Team"]
description = "VRBattles Esports Platform API"
[dependencies]
# Web Framework
axum = { version = "0.7", features = ["macros", "multipart"] }
axum-extra = { version = "0.9", features = ["typed-header"] }
tower = "0.4"
tower-http = { version = "0.5", features = ["cors", "trace", "limit"] }
tokio = { version = "1", features = ["full"] }
# Database
sqlx = { version = "0.7", features = ["runtime-tokio", "postgres", "chrono", "uuid", "json"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Authentication
jsonwebtoken = "9"
argon2 = "0.5"
md5 = "0.7" # For legacy PHP password verification
# Validation
validator = { version = "0.18", features = ["derive"] }
# Error handling
thiserror = "1"
anyhow = "1"
# Logging & Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Configuration
dotenvy = "0.15"
config = "0.14"
# HTTP Client (for external APIs)
reqwest = { version = "0.12", features = ["json"] }
# Utilities
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["v4", "serde"] }
rand = "0.8"
base64 = "0.22"
libm = "0.2" # Math functions for rating calculations
# S3 compatible storage
aws-sdk-s3 = "1"
aws-config = "1"
[dev-dependencies]
tokio-test = "0.4"
httpc-test = "0.1"
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true