f6dd41fd41
CI / Build, lint & test (push) Successful in 2m21s
Docs: - .env.example: documents all environment variables with defaults - CONTRIBUTING.md: dev setup, running tests, code style, design constraints - MODDING.md: full schema reference for cards, packs, objectives, and SBCs - .gitea/workflows/ci.yml: Gitea Actions CI (fmt check, clippy, build, test) Middleware (#50-52): - Body limit (256 KB) via DefaultBodyLimit on all routes (#50) - Concurrency limit (256 concurrent requests) via semaphore middleware; returns 429 Too Many Requests when at capacity (#51) - Correlation IDs via tower_http request_id layers; sets x-request-id UUID on every request and propagates it to the response headers (#52) Layer order (outermost → innermost): CorsLayer → DefaultBodyLimit → concurrency limit → SetRequestId → TraceLayer → PropagateRequestId → routes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.1 KiB
TOML
40 lines
1.1 KiB
TOML
[package]
|
|
name = "openfut-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["OpenFUT Contributors"]
|
|
description = "Offline Ultimate Team backend — game-independent core"
|
|
license = "MIT"
|
|
repository = "https://github.com/openfut/openfut-core"
|
|
|
|
[lib]
|
|
name = "openfut_core"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "openfut-core"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.7", features = ["macros"] }
|
|
http = "1"
|
|
tokio = { version = "1", features = ["full"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio-rustls", "migrate", "chrono", "uuid"] }
|
|
tower-http = { version = "0.5", features = ["cors", "trace", "request-id"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
thiserror = "1"
|
|
anyhow = "1"
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
rand = "0.8"
|
|
dotenvy = "0.15"
|
|
axum-macros = "0.4"
|
|
|
|
[dev-dependencies]
|
|
axum-test = "14"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tower = { version = "0.5", features = ["util"] }
|