Cross Compiling Rust Applications for windows

Reading time ~1 minute

Intro

The basics of targetting another platform are reasonably simple. Install the relavent target platforms using rustup followed my installing the required linkers.

The steps to cross compile from ubuntu -> windows are as follows.

Install the target with rustup using the following command

rustup target add x86_64-pc-windows-gnu

Once the download has completed, the linkers as can installed with the following command.

sudo apt install mingw-w64

With that out of the way you can now compile the lib/app with another target (in this case windows) using the following command

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

Overall the process was fairly painless once I found the right commands, though sadly that required a bit more digging than I would have liked.

RC1140

Embracing the ultra

# IntroThis past month marked the latest iteration of the 360one MTB and the culmination of months of training. In the end, it wasn't jus...… Continue reading

Cyber Apocalypse 2021 CTF

Published on April 24, 2021

Covert Login Alerting

Published on June 01, 2020