Before you begin, make sure you meet the necessary prerequisites. You can find more details in the official Tauri Guide.
You'll need to add an additional Rust target:
- Target:
wasm32-unknown-unknown
To install it, run the following command using rustup
:
rustup target add wasm32-unknown-unknown
Make sure the following development libraries are installed:
webkit2gtk-devel
libwebkit2gtk41-devel
curl
wget
file
openssl
gtk+3-devel
librsvg-devel
gcc
pkg-config
You can install these using your package manager. For detailed instructions, refer to the official Tauri Linux setup guide.
For Void Linux, install these dependencies by running:
sudo xbps-install -Syu
sudo xbps-install -S \
webkit2gtk-devel \
libwebkit2gtk41-devel \
curl \
wget \
file \
openssl \
gtk+3-devel \
librsvg-devel \
gcc \
pkg-config
You'll also need the following Rust crates:
trunk
tauri-cli
You can install them using cargo
with the command:
cargo install --locked trunk tauri-cli