This guide walks you through everything needed to build and run Pacto from source on Windows. You will install Visual Studio Build Tools, CMake, LLVM, the WebView2 runtime, the Rust toolchain, Node.js, and pnpm — then install dependencies and launch the app. All commands are written for PowerShell.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/covenant-gov/pacto-app/llms.txt
Use this file to discover all available pages before exploring further.
Run PowerShell as Administrator for the system-level installation steps. Once Rust, Node.js, and pnpm are installed you can continue in a regular terminal.
Install system dependencies
Open PowerShell as Administrator and install the required tools using Install Visual Studio 2022 Build Tools with the C++ workload:When the Visual Studio Installer opens, select:
winget:- Desktop development with C++
- MSVC compiler/linker toolchain
- Windows 10/11 SDK
LIBCLANG_PATH environment variable so that bindgen can find libclang (restart your terminal after this):| Package / Tool | Purpose |
|---|---|
| Visual Studio Build Tools (C++) | Provides the MSVC compiler and linker required by Rust on Windows |
| WebView2 Runtime | Required by Tauri to render the application UI |
CMake | Build system required by native Rust dependencies (e.g. whisper-rs-sys) |
LLVM (clang / libclang) | Required by bindgen to generate Rust FFI bindings |
Git | Version control for cloning and updating repositories |
Whisper acceleration uses Vulkan on Windows. If you encounter Vulkan build errors, install the LunarG Vulkan SDK and restart your terminal.
Install Node.js
Install Node.js v18 or later (v20 recommended).Option A — nvm-windows (recommended for development):Option B — official Node.js installer:Verify the installation:
Install Node dependencies
From the root of the cloned repository, install all workspace dependencies:
Set up environment and run the app
Copy the example environment file:Run the full desktop app (frontend + Rust backend):Or run only the frontend in the browser (no Rust backend required):
The first
pnpm run tauri:dev can take several minutes because Cargo downloads and compiles all Rust dependencies. Subsequent builds are much faster.Troubleshooting
MSVC linker not found — `linker 'link.exe' not found`
MSVC linker not found — `linker 'link.exe' not found`
Error:Solution: Install Visual Studio Build Tools with the Desktop development with C++ workload, then reopen your terminal. If the issue persists, launch the x64 Native Tools Command Prompt for VS 2022 to ensure the MSVC environment is on your
PATH.WebView2 runtime missing
WebView2 runtime missing
Error:Solution: Install the WebView2 Runtime (it is usually pre-installed on Windows 10 and 11, but may be missing on older builds or server editions):
bindgen / libclang / cmake errors — `failed to run custom build command`
bindgen / libclang / cmake errors — `failed to run custom build command`
Error:Solution: Install CMake and LLVM, then set Close and reopen PowerShell after setting the environment variable.
LIBCLANG_PATH and restart PowerShell:Vulkan errors on Windows (Whisper) — `failed to compile with Vulkan support`
Vulkan errors on Windows (Whisper) — `failed to compile with Vulkan support`
Rust not found after installation
Rust not found after installation
Solution: Close and reopen your terminal so that the updated
PATH takes effect. If the issue persists, confirm that %USERPROFILE%\.cargo\bin is present in your user or system PATH.Permission denied during pnpm install
Permission denied during pnpm install
Solution: Configure pnpm to operate in user space, then reopen your terminal: