cargo build --release --target=x86_64-unknown-linux-gnu
Cross compiling to Windows is pretty straight forward.
rustup target add x86_64-pc-windows-gnu
sudo dnf install mingw64-gcc
- Build the project
cargo build --release --target=x86_64-pc-windows-gnu