8d752cb0e4
Spawn Core (axum) on an ephemeral loopback port backed by a disposable temp-file SQLite, seed a fifa17 profile via the real Core HTTP API, then drive the HOST's REAL transport (HttpCoreClient: CoreEconomy) + handlers against it — no fakes: credits reads Core balance; match-reward writer credits via Core grant_reward; purchasegroup full-gen renders the owned pack from a Core entitlement (no sentinel); userMassInfo overlay derives coins from the same Core state (credits==massinfo==Core invariant). Restart phase reboots Core from the same on-disk DB and proves coins + entitlements persist. Temp dir + 127.0.0.1:0 only; no prod DB/ports/containers/.105. dev-deps: openfut-core, tokio, axum.
25 lines
1.0 KiB
TOML
25 lines
1.0 KiB
TOML
[package]
|
|
name = "openfut-utas-host"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
description = "FIFA 17 UTAS migration host: serves implemented routes (/club) from OpenFUT Core, transparently proxies everything else to the Python UTAS oracle"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
openfut-adapter-fifa17 = { path = "../openfut-adapter-fifa17" }
|
|
openfut-http = { path = "../openfut-http" }
|
|
openfut-identity = { path = "../openfut-identity" }
|
|
serde_json = "1"
|
|
# Plain-HTTP client for Core queries and Python passthrough. UTAS is plaintext
|
|
# HTTP (worker D: no wrap_socket, no cert), so no TLS backend is linked.
|
|
reqwest = { version = "0.11", default-features = false, features = ["blocking", "json"] }
|
|
|
|
[dev-dependencies]
|
|
parking_lot = "0.12"
|
|
# Real host<->Core integration harness: spawn Core (axum) against a disposable
|
|
# temp-file SQLite and drive the real CoreEconomy transport (no fakes).
|
|
openfut-core = { path = "../openfut-core" }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net"] }
|
|
axum = "0.7"
|