Next Steps
Now that you’ve installed all of the prerequisistes you’re ready to create your first Tauri project!
In order to get started building your project with Tauri you’ll first need to install a few dependencies:
Follow the link to get started for your respective operating system:
Tauri requires various system dependencies for development on Linux. These may be different depending on your distribution but we’ve included some popular distributions below to help you get setup.
TODO: Need to build out NixOS instructions
If your distribution isn’t included above then you may want to check Awesome Tauri on GitHub to see if a guide has been created.
Next: Install Rust
Tauri uses Xcode and various macOS and iOS development dependencies.
Download and install Xcode from one of the following places:
Be sure to launch Xcode after installing so that it can finish setting up.
Only developing for desktop targets?
If you’re only planning to develop desktop apps and not targeting iOS then you can install Xcode Command Line Tools instead:
Next: Install Rust
Tauri uses the Microsoft C++ Build Tools for development as well as Microsoft Edge WebView2. These are both required for development on Windows.
Follow the steps below to install the required dependencies.
Next: Install WebView2.
Tauri uses Microsoft Edge WebView2 to render content on Windows.
Install WebView2 by visiting the WebView2 Runtime download section. Download the “Evergreen Boostrapper” and install it.
Next: Install Rust
Tauri is built with Rust and requires it for development. Install Rust using one of following methods. You can view more installation methods at https://www.rust-lang.org/tools/install.
Install via rustup
using the following command:
Visit https://www.rust-lang.org/tools/install to install rustup
.
Be sure to restart your Terminal (and in some cases your system) for the changes to take affect.
Next: Configure for Mobile Targets if you’d like to build for Android and iOS, or, if you’d like to use a JavaScript framework, install Node. Otherwise Create a Project.
Go to Node.js website, download the Long Term Support (LTS) version and install it.
Check if Node was succesfully installed by running:
It’s important to restart your Terminal to ensure it recognizes the new installation. In some cases, you might need to restart your computer.
While npm is the default package manager for Node.js, you can also use others like pnpm or yarn. To enable these, run corepack enable
in your Terminal. This step is optional and only needed if you prefer using a package manager other than npm.
Next: Configure for Mobile Targets or Create a project.
If you’d like to target your app for Android or iOS then there are a few additional dependencies that you need to install:
JAVA_HOME
environment variable:Selecting “Show Package Details” in the SDK Manager enables the installation of older package versions. Only install older versions if necessary, as they may introduce compatibility issues or security risks.
ANDROID_HOME
and NDK_HOME
environment variables.rustup
:Next: Setup for iOS or Create a project.
rustup
in Terminal:Next: Create a project.
If you run into any issues during installation be sure to check the Troubleshooting Guide or reach out on the Tauri Discord.
Next Steps
Now that you’ve installed all of the prerequisistes you’re ready to create your first Tauri project!
© 2024 Tauri Contributors. CC-BY / MIT