fix(hook): build version.dll as its own workspace root
openfut-hook is a Windows version.dll proxy injected into the FIFA client, but as a member of the parent OpenFUT workspace its [profile.release] was silently ignored (cargo only honors profiles at the workspace root, and forbids per-package `panic` overrides). The shipped DLL was therefore built opt-level=3 / strip=debuginfo / panic=UNWIND -- and unwinding a Rust panic across the DllMain/FFI boundary into the game process is UB. Add an empty [workspace] table so the crate is its own root and its release profile (panic=abort, strip=symbols, opt-level=s) applies. Paired with the parent workspace `exclude`. Also lands the artifact in openfut-hook/target/ (matching the launcher config.rs default hook_dll_path) instead of the parent target/. Cross-build verified: panic=abort now emitted; DLL 1200126 -> 861696 B.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user