crane/docs/examples/cross-windows.md

314 B

To cross compiling a rust program for windows, run the following in a fresh directory:

nix flake init -t github:ipetkov/crane#cross-windows

Alternatively, if you have an existing project already, copy and paste the following flake.nix:

{{#include ../../examples/cross-windows/flake.nix}}