# Standalone workspace root: this Windows-only version.dll proxy is deliberately # NOT a member of the OpenFUT workspace (see that root's `exclude`) so its own # [profile.release] below actually applies. An empty [workspace] table stops Cargo # from walking up and re-attaching this crate to the parent workspace. [workspace] [package] name = "openfut-hook" version = "0.1.0" edition = "2021" [lib] crate-type = ["cdylib"] [features] # Per-game selection: each supported game is a feature enabling its module. Exactly # one MUST be set (the crate emits a compile_error otherwise). Build the deployed # artifact with `--features fifa17`. Add a future game as a new feature here plus a # `mod ;` + dispatch arm in lib.rs — never by copying a retired game's code. fifa17 = [] [dependencies] windows-sys = { version = "0.59", features = [ "Win32_Foundation", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_SystemServices", "Win32_Networking_WinSock", "Win32_Security_Cryptography", "Win32_System_Threading", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Diagnostics_Debug", "Win32_System_Kernel", ] } # Single source of truth for the OpenFUT redirect config (openfut.cfg schema, # EA-port -> OpenFUT-port map, WinSock byte-order helpers). Shared with the # launcher so the hook and openfut.cfg agree by construction. openfut-common = { path = "../openfut-common" } [profile.release] opt-level = "s" strip = true panic = "abort"