Wine runs the test binary cleanly when targeting x86_64-pc-windows-gnu, so wire that target's runner to wine in .cargo/config.toml. The default windows-msvc build is unaffected. README gains a 'Linux Cross-Build (Optional)' section with the dotnet 10 / mingw-w64 / wine prerequisites and the EnableWindowsTargeting=true recipe needed to cross-build the net8.0-windows C# UI from Linux.
9 lines
337 B
TOML
9 lines
337 B
TOML
[target.x86_64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
# Linux cross-build (optional). Only takes effect when you explicitly pass
|
|
# `--target x86_64-pc-windows-gnu`. Windows builds (the default) are unaffected.
|
|
# See README "Linux cross-build" for prerequisites.
|
|
[target.x86_64-pc-windows-gnu]
|
|
runner = "wine"
|