Cross Compiling Rust Applications for windows

Reading time ~1 minute


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.


Migrating from Wunderlist to Org files

# Introduction Sometime last year wunderlist was acquired by Microsoft and while this is awesome for themit left me with a dilemma of mig...… Continue reading

Application deployment at scale with torrents

Published on April 10, 2017

Race Report - Soweto Marathon

Published on November 19, 2016