I have successfully configured cargo to cross-compile from Linux to
x86_64-pc-windows-gnu. However due to deficiencies in wine I can’t run the resulting binary via binfmt-misc and have to explicitly prefix it with
wine64. Is it possible to somehow lure cargo in doing it for running the tests?
(Problem with Wine is that it can’t automatically select between
wine64 based on the binary format, though the format clearly can be easily determined and I need wine32 for other things. Problem with
i686-pc-windows-gnu target is that Rust is incompatible with the gcc cross-compiler provided in most Linux distributions.)