Setup for Windows

This setup is only needed for development. Consumers of Tauri apps will not have to do any of this.

Dependencies

Tauri is a polyglot system, and as such requires a good deal of tooling.

System Dependencies:

First you should download and install Visual Studio MSBuild Tools and C++ build tools.



Next, you will need to install Node.js. We recommend installing it by downloading and installing the latest nvm-windows for features such as version management.

Then run the following from an Administrative PowerShell and press Y when prompted:

# BE SURE YOU ARE IN AN ADMINISTRATIVE PowerShell!
nvm install 12.16.0
nvm use 12.16.0
Set-ExecutionPolicy Bypass -Scope Process -Force; iwr -useb get.scoop.sh | iex
scoop install yarn

This will install the most recent version of nodejs* with nvm, scoop, and yarn.

Optional If You Need npm

# DO NOT EXECUTE FROM ADMINISTRATIVE PowerShell!
yarn global add npm

Rustc and Cargo Package Manager

Now you will need to install Rust. The easiest way to do this is to use rustup, the official installer.

64-bit download link

32-bit download link

Download and install the proper variant for your computer's architecture. After, run the following command in a terminal.

rustup update stable

Enable Loopback

Microsoft disables the loopback interface - you need to whitelist it if you intend to use the dev-server:

Open an administrative console and enter:

CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.Win32WebViewHost_cw5n1h2txyewy"

Devtools

If you want to debug the front-end you will have to download Microsoft Edge Devtools from the Microsoft store.

This will allow you to attach to a running instance of your Tauri project! If you need help take a look at the devtools-guide.

Tauri Bundler

After you have installed Rust and other required dependencies, it is wise to restart your terminal before continuing.

Install Tauri bundler through Cargo:

cargo install tauri-bundler --force

Continue

Now that you have set up the Windows-specific dependencies for Tauri, learn how to add Tauri to your project.