If the MSVC build tools are not already installed, install them now.
Go to https://visualstudio.microsoft.com/downloads/
Download and run the installer. You don’t need to install everything. Here’s a screenshot showing which components need to be installed:
Screenshot of Windows Build Tools Installer
Go to https://www.rust-lang.org/tools/install
Download and run the 64-bit version of rustup-init.exe
Run cargo build
to build the program
Run cargo build --release
to build a release version