todo: make this friendlier and more complete
Tauri is a polyglot system that uses:
It can be developed on macOS, Linux and Windows.
When contributing to the Rust libraries tauri
, tauri-api
, and tauri-updater
; you will want to setup an environment for RLS (the Rust Language Server). In the Tauri root directory, there is a .scripts
folder that contains a set of scripts to automate adding a couple temporary environment variables to your shell/terminal. These environment variables point to directories in the test fixture which will prevent RLS from crashing on compile-time. This is a necessary step for setting up a development environment for Tauri's Rust libraries.
.scripts/init_env.bat
for Windows Cmd, .scripts/init_env.ps1
for Windows Powershell, . .scripts/init_env.sh
for Linux/macOS bash (note the first .
in this command).Let's make a new example. That's a great way to learn. We are going to assume you are on a nixy type of environment like Linux or macOS and have all of your development dependencies like rust and node already sorted out.
git clone git@github.com:tauri-apps/tauri.git
cd tauri/cli/tauri.js
yarn
mkdir ../../examples/vanillajs && cd "$_"
"tauri:source": "node ../../../cli/tauri.js/bin/tauri",
[dependencies.tauri]
path = "../../../../core/tauri"
features = [ "all-api" ]