rust - cross compile to target windows

 

First have to install (about 1G of additional space is required)

 apt-get install gcc-mingw-w64

In case you would like to cross compile your application into windows, you can do the following 

rustup target add x86_64-pc-windows-gnu

This will add the require component.

Then run cargo build like you normally wo

cargo build --release --target x86_64-pc-windows-gnu





Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type